하나의 클래스에 같은 이름의 메서드를 여러 개 만드는 것메서드의 이름이 같을 때 발생매개변수의 개수 또는 타입이 다를때 발생매개변수 타입이 같더라고 위치가 다를때 발생
인스턴스가 생성될 때마다 호출되는 '인스턴스 초기화 메서드'모든 클래스에는 반드시 하나 이상의 생성자가 있어야 한다.인스턴스 변수에 적절한 값을 저장하는 것연산자 new에 의해서 메모리에 Card클래스의 인스턴스 생성생성자 Card()가 호출되어 수행연산자 new에 결
기존의 클래스를 재사용해서 새로운 클래스를 작성하는 것.두 클래스는 조상과 자손으로 관계를 맺어준다.자손은 조상의 모든멤버를 상속받는다.(생성자, 초기화블럭 제외)자손의 멤버개수는 조상보다 적을 수 없다. 공통부분은 부모가 관리하고 개별부분은 자손이 관리한다.즉 부모의
서로 관련된 클래스와 인터페이스의 묶음패키지는 소스파일에 첫번째 문장으로 단 한번 선언한다.사용할 클래스가 속한 패키지를 지정하는데 사용.import문을 사용하면 클래스를 사용할 때 패키지명을 생략할 수 있다.
클래스, 변수, 메서드의 선언부에 사용되어 부가적인 의미를 부여한다.단 하나만 사용 가능멤버 또는 클래스에 사용되어, 외부로부터의 접근을 제한한다.public, protected, default, privatepublic : 접근 제한이 없다.private : 같은 클