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
How to pass arraylist to stored procedure in java?
What are the advantages and disadvantages of object cloning?
What are the core java topics?
Explain the difference between abstract classes and interfaces in java?
How do you sort arraylist in descending order?
What do you know about java?
What are the 3 types of loops in java?
How large is a boolean?
What is sleep method?
Difference difference paint() and paintcomponent()?
What is an interface in java?
How do you override a variable in java?
What is append function?
How do you write methodology?
What does exclamation mean in java?