what are the Differences Object and Class?

Answers were Sorted based on User's Feedback



what are the Differences Object and Class?..

Answer / 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

what are the Differences Object and Class?..

Answer / hema

A class is a template . An object is an instance of a class.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Visual Basic Interview Questions

What is the difference between queryunload and unload in form?

2 Answers  


How do you change the icon and otherwise manipulate the DOS box?

0 Answers  


which method used to move a recordset pointer in nth position in DAG?

0 Answers  


Explain the types of Views in Listview Control?

0 Answers   Hella,


What is Seek Method which type of record set is available this?

0 Answers  


Is it possible to Manipulate data through flexgrid? Explain.

0 Answers  


What does DoEvents do?

2 Answers  


How will you retain the values of existing elements in a dynamic array when you want to alter the array size?

1 Answers  


What is the use of Immediate, Local Window?

1 Answers  


what are the Types of LockEdits in RDO?

0 Answers  


What is ADO? What are its objects ?

1 Answers  


Is it possible to change menu runtime using API? If yes Specify the function names?

0 Answers  


Categories