0

what is the object and use?

22nd Sep 2016, 4:44 PM
venkata veerendra manikumar kancharla
venkata veerendra manikumar kancharla - avatar
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
22nd Sep 2016, 6:09 PM
Bhavisha Parmar
Bhavisha Parmar - avatar
+ 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.
22nd Sep 2016, 8:44 PM
Zen
Zen - avatar
+ 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
27th Sep 2016, 5:04 AM
Vishwanath Patil
Vishwanath Patil - avatar