A sort of summons FrontEnd & display

 

  

1)

FrontEnd     FrontEnd    = new FrontEnd( ); 

             (random name)

//Summon FrontEnd to loader(Main)

2)

public FrontEnd(int      para     )     {System.out.println(para);} 

                     (random name)

//When summoning "FrontEnd", print a result "apartment" as an int type data. 

FrontEnd 호출할 때, Int type 의 parameter 를 출력하고 호출한다.


3)

public FrontEnd(String     index    ) {this.controller(index);}

                           (random name)

//

When summoning "FrontEnd", insert a parament "index" into the method of Controller.

FrontEnd 를 호출할 때 String type 의 index라는 parameter를 class(this) 안에 있는 Controller라는 method 에 대입


4) public FrontEnd ( ) {this.title= makethistitle();} 


When summoning FrontEnd, also call a method "makethistitle that is included in the same class.

No obligatory to fill in the parameter with a value. 

//front end 를 호출할 때 class 에 있는 title은 makethistitle로 호출한다. 이때 parameter 를 굳이 채울 필요 없다.


5)

public void display(String text) {

System.out.print(text);

}

Method display is to print a text, which data type is String.

/* 출력 전용 메서드1 *///string 타입의 parameter 를 display 라는 method로 출력

display 대신 다른 이름으로 사용 가능..

Comments