Constructor
What:
1. it is a special method for initializing the state of an object
2. it has the same name as the class name
3. it has no return type
4. it is usually public
5. it can be overloaded
What:
1. it is a special method for initializing the state of an object
2. it has the same name as the class name
3. it has no return type
4. it is usually public
5. it can be overloaded
No comments:
Post a Comment