Advertisement
khaiwen1111

Practical 3 Part C

Jun 28th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. 1) instance is defined in class and local variable defined in method
  2. 2) instance variable represent the storage location for data of an object, but property do not have any storage location.
  3. 3) static is using class name and instance method is using
  4. 4) constructor is an instance method that usually has the same name as the class, and can be used to set the values of the members of an object, either to default or to user-defined values.
  5. 5) multiple constructor with same name but different parameter and type
  6. 6) compiler will generate a default when no constructor is not defined in a class (empty parameter and empty class)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement