what are the Differences Object and Class?

Answer Posted / guest

Classes and objects are separate but related concepts.
Every object belongs to a class and every class contains
one or more related objects.1)A Class is static. All of the
attributes of a class are fixed before,during, and after
the execution of a program.
The attributes of a class don't change.The class to which
an object belongs is also (usually) static. If a particular
object belongs to a certain class at the time that it is
created then it almost certainly will still belong to that
class right up until the time that it is destroyed.
2)An Object on the other hand has a limited lifespan.
Objects are created and eventually destroyed. Also during
that lifetime, the attributes of the object may undergo
significant change.So basically the difference between a
class and an object is that a class is a general
concept while objects are the specific and real instances
that embody that concept. When creating an object oriented
program we define the classes and the relationships between
the classes . We then execute the program to create,
update, and destroy the objects which are the specific
realization of these classes.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

___ property used to add a menus at runtime.

1481


How would you attach pictures in Treeview Control?

1728


What is "NULL"?

1239


What is the use of progress Bar Control?

1719


Explain the differences between ActiveX Dll and ActiveX Exe?

1723


What is ado data control in vb6 0?

864


What is instantiating?

1946


Explain about Caturing Baseline.

854


Write the Steps in Creating an ActiveX Control?

1701


What are the important components of OLEDB?

2046


What is difference between datagrid and flexgrid?

13106


How would you create properties by using class Builder Wizard?

2287


What is executenonquery in vb net?

713


what is the Difference between Dynaset and Snapshot?

1725


Explain about an event-driven programming language?

726