- The concept of objects
- What is object-oriented
- Class
- What is an object's properties
- What is a method of an object
- Class-to-object relationships/differences
3. Class
A class is a mold that determines the characteristics (attributes) and behavior (methods) that an object will have;
Characteristics of the class:
- Class is the type of object;
- A collection of groups of objects with the same properties and methods;
4. Properties of an Object
The specific characteristics that the object possesses;
Each object has its own specific value;
5. Methods of the object
Actions that an object can perform
6. Classes and objects
A class is an abstract concept, just a template that is used to describe an object's information;
object is a concrete entity, which obtains specific object information according to the class;
For example:
A mobile phone is an object;
Phone class: Includes properties and methods
Properties are CPU, memory, screen, etc.
Methods have to call, send text messages and so on;
java-Object-oriented