Technical Discussion :: C++
Home > Freshers > Technical Interview Questions > C++
45. 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 :: Aricent iGate Virtusa Virtusa Syntel Inc. Accenture
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.