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
what is the Difference between Linked Object and Embedded Object?
How can you get selected file from file system Control?
What is the use of debug Window?
What is rdo in vb?
How do I implement Undo?
by writing MACRO CODE,i want to retrive data from one spead sheet to another UI (workbook). control will search cell by cell for each row and load the data in another workbook(UI). ex: custdetails custname lastname locaton mobile pincode custdetails raj tony hyd 555555 521245 servcreqrd srvce# srvcename location srvcepincode servcreqrd 754 drilling hyd 521784 for the above example in the another workbook retrive data like this custname Raj srvce# 754 srvcepincode 521784. while retrieving data control will search cell by cell for each row.
Types of ActiveX Components in VB?
Write the steps in Creating ActiveX Dll and Active Exe?
How would you attach pictures in Treeview Control?
Give brief description about class?
How do I remove/change the picture property of a control at design time?
What is the difference between change event in normal combobox and dbcombobox?
To.set the command button for ESC ___ Property has to be changed.
How can you Add API functions to your Application?
How do I tell when an application executed using the SHELL command is finished?