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

Can main method override?

0 Answers  


Write a program in c++ to read two floating point numbers and find their sum and average.

2 Answers  


what is the difference between function template and template of function?explain with example.

2 Answers  


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

0 Answers  


What is memory leak and memory corruption?

1 Answers   TCS,






Prepare me a program for the animation of train

0 Answers  


sir i want to know which posting to apply since i am BE CSE.. also want to know what are the rounds there for my interview...Expecting for ur valuable answer....

2 Answers  


Plese get me a perfect C++ program for railway/airway reservation with all details.

0 Answers   ITM,


What is extreme programming?

2 Answers  


what are the ways in which a constructors can be called?

0 Answers  


In which Scenario you will go for Interface or Abstract Class?

1 Answers   InfoAxon Technologies,


Who invented oop?

0 Answers  


Categories