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
___ is a property to resize a label control according to your caption.
which method used to move a recordset pointer in nth position in DAG?
How would you access objects created in ActiveX Exe and ActiveX Dll
Difference between ActiveX Control and Standard Control.
How do I tell when an application executed using the SHELL command is finished?
How do I implement Undo?
What is ODBC Direct and Microsoft Jet Database Engine ?
It possible to call OLEDB?s Features directly in VB without using any control?
How would you create your application in DHTML?
How can you Implement windows functionality in VB?
Types of LockEdits in RDO.
How do I force a file dialogue box to reread the currect disk?
Types of LockEdits in DAO?
How can Visual Basic be used for server-side scripting?
How would you navigate between one document to another document