What are objects?
Objects are real-time entities. Entity means Porul in Tamil.
It is a combination of states & behaviors.
What is Class?
Class is a template or blueprint. It means logical entity.
How do we create an object in a class?
Class bike {
Bike active = new bike();
Bike pulsar = new bike();
}
Bike – Logical entity
Active – Physical entityClass Actor {
Actor Rajni = new Actor();
Actor Vijay = new Actor();
}
Actor is a template for eg: dance, sing, act
Whereas Rajni is an object in the class named “actor” here.
File = Class
Folder = Package
Drive = Project
Top comments (0)