what is difference between class and object?
Answer Posted / ayisha shoukat
CLASS:
A class is a collction od data members and member
functions.in class data members are private usually
and member functions are private.
And
A class is also like a data type therefore it is used to
declare variabes in oop.
OBJECT:
The variables of a class are objects.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is listnode in java?
Can list contain null in java?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
What is anagram of a string?
What all access modifiers are allowed for top class ?
How many classes can any class inherit java?
Why do we need data serialization?
What kind of variables can a class consist?
Define inheritance with reference to java.
Can we assign the reference to this variable?
What is the significance of listiterator?
Define an applet in java?
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
What is meant by memory leak?
What is primitive array?