- Java is a pure object oriented language.
- So java program contains only classes.
- Each class has its own data items and functions.
- The data items are called fields and the functions are called methods.
- A class is a user defined data type and it represents the template of the fields and its related methods.
- Object is a variable of type class and is used to access the class.
No comments:
Post a Comment