What is diference between Objects and Classes?

Questions by a_renapurkar   answers by a_renapurkar

Showing Answers 1 - 5 of 5 Answers

Kishor Sambhaji Paikrao

  • Feb 15th, 2006
 

1) A class create a new data type that can be used to create an object. i.e.  A class  create an logical framework that defines the relationship between it's member,On the other hand, when you declared an object of the class, you are creating an instance of that class.

2)A Class is a logical construct, and an Object  has physical reality because Object occupies space in memory.

  Was this answer useful?  Yes

A class is a user defined data type. It has data and field tied together. It is a template or a blue print.

A object is a instance of a class ans it actually ocuppies the memory

  Was this answer useful?  Yes

kranthi

  • Feb 24th, 2006
 

No

  Was this answer useful?  Yes

ameybhide

  • Apr 4th, 2006
 

Classes:

Classes act as a blue print for object creation. Classes do not occupy any memory as they are not relevant to run-time.

Objects:

Any entity which can be described by an identifier, state and behaviour is termed as an object in OOPS. Object are created and destroyed in run-time and occupy memory

Thus classes help to define contract and implementation of the object that will be created in rum-time. Do not confuse with class Class, as this also represents an object of the type Class.

  Was this answer useful?  Yes

sithu

  • Sep 12th, 2006
 

Same as in OOPS,

 

Simple Example here

 

Tables are called as classes, columns are called as objects

 

Cheers

Sithu, sithusithu@hotmail.com

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions