Object In c++


Object


  1. An object is an identifiable entity with some characteristic and behavior An Object is an instance of a class. When a class is defined, no of memory allocated but when it is an instantiated(an object is created) memory is allocated.
  2. When a program is executed the objects interact by sending message to one another.
  3. Each object contain data and code to manipulate the data. Object can interact without having to know detail of each other's data or code, it is sufficient to know the type of massage accepted and type of response returned by the object.
  4. There can be many object of same class.   

  

No comments:

Powered by Blogger.