Technical Discussion :: C++
Home > Technical Interview Q&A > C++ > Discussion
11 / 187
What are the difference between an object and a class?
Answer:
Classes are user defined data types and behave like the built-in type of a programming language. The wrapping up of data and functions into a single unit called class.
Objects are the basic run-time entities in an object-oriented system. When a program is executed, the objects interact by sending messages to one another.
Asked In ::
Anuradha
23 Feb, 2019 5:07 AM
Classes are user defined data types and behave like the built-in type of a programming language. The wrapping up of data and functions into a single unit called class.
Objects are the basic run-time entities in an object-oriented system. When a program is executed, the objects interact by sending messages to one another.
Objects are the basic run-time entities in an object-oriented system. When a program is executed, the objects interact by sending messages to one another.