OOPs Concepts
Programming and Technical
Programming
Definition
What is an object?
Read Solution (Total 1)
-
- An object is an instance of a class and it is the basic building block for object-oriented programming. The purpose of an object is to provide services. Objects are uniquely identified by name, they have a state, and they provide services.
An object always has identity, state, and behavior. The address of an object constitutes its identity. In the purest computer science sense, an object’s identity is just a region of storage. In C++, the ‘this’ pointer holds the address of an object. State is the value of a member variable. The behavior of an object is provided through class functions. - 6 years agoHelpfull: Yes(0) No(0)
OOPs Concepts Other Question