Question { IBM, 10767 }
difference between class and object
Answer
Class -
Class is collection of data member and member function .....
Class is logical entity...
Class is blueprint of object.....
class is collection of objects which holds properties of class...occupy
Object -
object that holds state , behaviour and identity properties
object is nothing but the having same memory space in ram.(minimum 1 byte compiler dependent).....
object is instance of class...............