0
what is the object and use?
3 Answers
+ 2
object is a instance of a class that defines properties of that class. like we have one class named person. now age, height is objects of the class person
+ 1
No, age and height would be attributes of the class Person.
To use a class, you have to create objects of that class (a class is basically a blueprint to create objects). The objects have set attributes, and you can manipulate the objects with the class methods.
+ 1
object is an entity that has attributes,behaviour,and identity.
objects are member of a class
behaviour and attributes of an object are defined at the class defination