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
Can we have multiple classes in a single file?
What is primitive data type in java?
Where can i get Latest SUN Certification Dumps and what are the Sun Certification Codes that are available, Im new to JAVA, so please gimme info as i need to write J2EE - Core Java Certification
What are the basic concepts of OOPS in java?
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
Explain notify() method of object class ?
Can you inherit a constructor java?
How do you override a variable in java?
What is a local, member and a class variable?
Difference between keyword and identifier.
What is try-with-resources in java?
What is the purpose of extern variable?
What is the maximum size of a string in java?
What do you mean by object?
How hashset works internally in java?