Notice
Recent Posts
Recent Comments
Link
250x250
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- system
- php
- Java
- DS
- control
- data structure
- web
- Linux
- html
- MIPS
- AI
- openai
- for
- architecture
- XML
- github
- function
- Rag
- javascript
- DATAPATH
- computer
- mysql
- CSS
- python
- instruction
- Class
- Algorithm
- DB
- react
- Pipelining
Archives
- Today
- Total
목록constructor (1)
YYYEJI
Constructor란? Instance variable을 초기화 시켜주는 특별한 method입니다. Constructor의 특징 - Class와 같은 이름을 가지고 있음 - new 연산자를 통해 객체를 생성할 때 자동으로 가장 먼저 실행됨 - Parameter의 내용을 다르게 해서 1개보다 더 많이 선언될 수 있음(Different signature, overload) Constructor의 역할 instance variable의 값을 초기화 시키는 역할을 합니다. Constructor 생성 Constructor은 void, return type이 없고, Parameter의 값이 없는 constructor은 default constructor입니다. public class p { private Stri..
Java
2022. 12. 27. 00:08