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 the difference between Grid and Gridbaglayout?
What is boolean data type in java?
What are the four corner stones of oop?
Is it safe to install java on my computer?
Which variable is the independent variable?
What does you mean in math?
What is int lol?
What are the different types of inheritance in java?
How many types of keywords are there?
Can we force garbage collector to run ?
Why collection is called framework in java?
What is class array in java?
Explain about strings in java?
What is a finally block? Is there a case when finally will not execute?
How to sort an array from smallest to largest java?