- A constructor in Java is a special method that is used to initialize objects.
- If a class has no modifier (the default, also known as package-private), it is visible only within its own package (packages are named groups of related classes — you will learn about them in a later lesson.)
https://stackoverflow.com/questions/16164902/what-is-the-default-access-modifier-in-java
'WIL(What I Learned)' 카테고리의 다른 글
Push 전 Commit 메시지 변경하기 (0) | 2021.11.30 |
---|---|
21.11.29 月 (0) | 2021.11.30 |
21.11.22 月 (0) | 2021.11.22 |
자바정석 Chap.6 연습문제 답안 확인 모음 (0) | 2021.11.19 |
21.11.5 金 (0) | 2021.11.05 |