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 abstract class have normal methods?

0 Answers  


What does the code "cout<<(0==0);" print? 1) 0 2) 1 3) Compiler error: Lvalue required

15 Answers   ISTS, Wipro,


What is abstraction in oop?

0 Answers  


what is difference between String s=new String("vali"); String s="vali"

1 Answers  


What is polymorphism and its types?

0 Answers  






WILL I GET A guaranteed JOB AFTER DOING bsc()IT) and GNIIT from an NIIT CENTRE??

21 Answers   Biocon, MIT, NIIT,


What is virtual constructors/destructors?

4 Answers   IBS,


What is the difference between an object and a class?

3 Answers  


What is the point of oop?

0 Answers  


What is protected in oop?

0 Answers  


How to overload new operator in c++

2 Answers  


Definition of Object Oriented Programming in single line?

33 Answers   Impact Systems, Q3 Technologies, TCS,


Categories