Java

[Java] Explain about Overload

AlexHouse 2022. 2. 23. 01:05
728x90

Sometimes I was feeling like why I have to upload the post? what make me like this? .. This mean I chanaged a lot than before. honestly I' m so lazy and bullshit and stupid... Don't forget original intention I will keep my mind and passion in this way. So..Let's go guys.


 

 

This part is very important . You have to listen up Now.

 

 

 

 

\

각, 함수마다 this.name =name ; 이 구문이 정말 중요하다. 왜냐하면 이 함수에있는 name과 model 또는 price를 다시

 

여기에다가 넣어주겠다는 말이되는것이다. 이말이 없으면 계속해서 같은 값이 나오게 될 것이다.

그래서 this. 를 넣어주게되면

이러한 결과값이 나오게된다..

이것을 바로 오버로드라고한다.


 

 

 

 

To be continu..

 

728x90

'Java' 카테고리의 다른 글

[Java] 자바 디버그 찍는 방법  (0) 2022.10.10
이클립스 JDK 환경 변수 세팅  (0) 2022.07.11
[Java] "상속" 에대한 공부  (0) 2022.03.08