what is the difference between class and object?

Answer Posted / p.madhupriya

object is real world entity.
class is a collection of objects and member function .

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is destructor used?

679


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1493


Can we have inheritance without polymorphism?

704


What does no cap mean?

683


to find out the minimum of two integer number of two different classes using friend function

1740






What is coupling in oop?

690


write knight tour problem which is present in datastructure

2246


How do you answer polymorphism?

667


What type of loop is a for loop?

777


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1558


What is difference between class and object with example?

674


What is persistence in oop?

750


What is a class in oop?

678


Advantage and disadvantage of routing in telecom sector

872


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1489