What is the difference between class and object?
Answer Posted / suvarna handore.
Class is a basic entity which allow to combine data and
manipulators. In class definition we need to club data
members and member functions.The usability of structure and
function together in C++ is known as class.
Objects are the basic runtime entities. Object is an
instance of class.To access data members and member
functions within classes, objects are required. We can
access data from outside the class using objects.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is encapsulation in simple terms?
What is the real time example of encapsulation?
Can we define a class within the interface?
What is the full form of oops?
Why oops is important?
How long to learn object oriented programming?
What is coupling in oop?
Why is polymorphism used?
Can main method override?
What is encapsulation with example?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
Why is destructor used?
State what is encapsulation and friend function?
Why do while loop is used?
What does oop mean in snapchat?