What is the difference between class and object?

Answers were Sorted based on User's Feedback



What is the difference between class and object?..

Answer / neha

classes and objects are seprate but related concept.every
object belong to a class and every class contains one or
more objects.

Is This Answer Correct ?    7 Yes 1 No

What is the difference between class and object?..

Answer / 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

What is the difference between class and object?..

Answer / johncz

Class is a template for the custom type that can be used as
variable. It defines types of data that class contains and
the set of functions to manipulate those data types. It is
just a recipe to be used when class is instantiated.

Object is an entity created using class template. Such an
object occupies computer’s memory. Each object of the class
is independent entity.

Is This Answer Correct ?    0 Yes 0 No

What is the difference between class and object?..

Answer / kanchi

class is the advance version of structure because it contains the data and functions both so it is wrapped into a single unit called encapsulation.
Object is the instance of class and it always created at run time

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

Describe these concepts: Polymorphism, Inheritance and Abstraction.

0 Answers   TCS,


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?

0 Answers  


to remove the repeated numbers from the given . i.e.., if the input is 12233 output should of 123

2 Answers  


Have you ever interfaced with a database?

2 Answers   IBM,


why constructor cannt be declar virtually? why destructor cannt be overloaded?

2 Answers   Infosys,






Can bst contain duplicates?

0 Answers  


Is this job good for future? can do this job post grduate student?

0 Answers  


How is exception handling carried out in c++?

3 Answers  


What normal C constructs work differently in C++?

2 Answers  


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

0 Answers  


what is ltti

1 Answers   Unisys,


What is virtual function?where and when is it used?

2 Answers   Sitel,


Categories