difference between class and object

Answers were Sorted based on User's Feedback



difference between class and object..

Answer / srinivas konga

class is acollection of methods
it is a logical representation



object is a instance of class

it is physical representation
it is always in local declaration

Is This Answer Correct ?    27 Yes 4 No

difference between class and object..

Answer / pradeep kumar shukla

class is a reserved keyword to create user define data type
class is a machanism to create abstract, customize data type

object is a collection of variable ,an object made at run time
it is instance of class

Is This Answer Correct ?    4 Yes 0 No

difference between class and object..

Answer / selva

class is a blueprint of an object.

object is instance of class.

Is This Answer Correct ?    3 Yes 0 No

difference between class and object..

Answer / sahil

CLASS IS A COLLECTION OF METHODS
IT IS ALOGICAL REPRESENTATION


OBJECT IS AINSTANCE OF CLASS
IT IS A PHYSICAL REPRESENTATION
IT IS ALWAYS IN LOCAL DECLERATION

Is This Answer Correct ?    2 Yes 0 No

difference between class and object..

Answer / sravani

class tells us how our s/w object looks like after its
construction.it is a logical representation.




object is a physical representation of a class.

Is This Answer Correct ?    2 Yes 0 No

difference between class and object..

Answer / manoj kumar

class is a blueprint or template for creating objects.class
is imaginary.it does not exits in real world .

while , object is an entity with some characteristic and
behavior.it is a real world entity .

In oops ,object is an entity that can store data value and
has its interface through its function.

we can create an object like that:

classname objectname=new classname();

example :

Rectangle s=new Rectangle();

Is This Answer Correct ?    1 Yes 0 No

difference between class and object..

Answer / saquib

class is compiled.
class is a keyword which is used to create customise data type.
class without object is logical.


but object never compiled it only executed.
object is a physical representation of a class

Is This Answer Correct ?    0 Yes 0 No

difference between class and object..

Answer / rajdeep gupta

class in a keyword to create user define data type.it is
only on logical perception .it is collection of similar
types of variable.

object is a variable of class type .there is no meaning of
class without creating object.object is made at run time on
the heap portion of ram

Is This Answer Correct ?    0 Yes 0 No

difference between class and object..

Answer / nishant kumar

class is the collection of data member and member function associated with it.
object is a instance of class.
class is a user define key-word.

Is This Answer Correct ?    0 Yes 0 No

difference between class and object..

Answer / maheshbirajdar

Class -
Class is collection of data member and member function .....
Class is logical entity...
Class is blueprint of object.....

class is collection of objects which holds properties of class...occupy
Object -

object that holds state , behaviour and identity properties

object is nothing but the having same memory space in ram.(minimum 1 byte compiler dependent).....

object is instance of class...............

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

how can we design a magic square in c++?or suggest me the basic idea of it.

3 Answers  


Write a program to accept a number and to print numbers in pyramid format? for eg:for a no. 5 1 212 32123 4321234 543212345

7 Answers  


What is pure oop?

0 Answers  


i ahve v low % in 12th n BSC which is aroun 50 coz science was imposed on me......nw m doin MCA n my aggregate in above 74%,what shud i say if asked about low previous percentage??????

4 Answers  


What is constructor in oop?

0 Answers  






What do you mean by abstraction?

0 Answers  


What is abstraction in oop with example?

0 Answers  


What is multiple inheritance? Give Example

6 Answers   Mind Tree,


What is destructor in oop?

0 Answers  


function overridind means and simple program

2 Answers  


What is coupling in oop?

0 Answers  


Write a program to multiply 3x3 matrics

1 Answers  


Categories