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 variables are stored in stack?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
What is the difference between iterator and enumeration ?
Does hashset allow duplicates in java?
Does list maintain insertion order java?
What is an inner class in java?
What is string length in java?
What is java in detail?
What class allows you to read objects directly from a stream in java programming?
What is flag in java?
What do you meant by active and passive objects?
What is exception in java?
Explain about serializable interface in java?
How do you start a thread?
Which is better stringbuilder or stringbuffer?