강의

멘토링

커뮤니티

Inflearn Community Q&A

ll0913's profile image
ll0913

asked

Do it! Introduction to Java Programming with Eun Jong

Classes and Objects 1 (3)

참조형 데이터 타입은 클래스 이름과 같아야 하나요?

Written on

·

277

0

Student studentLee = new Student();

 

빨간색 참조형 데이터 타입은 클래스 이름과 꼭 같아야 하는건가요? 다르게 하니까 오류가 나서 여쭤봅니다!

java

Answer 1

1

네 꼭같아야 합니다 왜나하면 클래스 하나 자체를 자료형으로 사용하기 때문이죠

ll0913's profile image
ll0913

asked

Ask a question