Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What is the difference between an object and a class?
What is the difference between an object and a class?
✍: Guest
Classes and objects are separate but related concepts. Every object belongs to a class and every
class contains one or more related objects.
- 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.
- 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.
2012-02-17, 2777👍, 0💬
Popular Posts:
How can I include comments in HTML? An HTML comment begins with "<!--", ends with "-->...
Can you explain in brief how can we implement threading ? Private Sub Form1_Load(ByVal sender As Sys...
How To Increment Dates by 1? - Oracle DBA FAQ - Understanding SQL Basics If you have a date, and you...
.NET INTERVIEW QUESTIONS - Did VB6 support multi-threading ? While VB6 supports multiple single-thre...
How do you pass control from one JSP page to another? Use the following ways to pass control of a re...