what is difference between class and object?
Answer Posted / revansiddappa p.h.
Class:
Is another kind of data type in oops like structure.
It is static in nature during program execution.
Object:
It is like variable of type class for accessing member
variables and methods.
Objects are dynamic in nature during program execution.
Can be constructed and destroyed.
| Is This Answer Correct ? | 44 Yes | 14 No |
Post New Answer View All Answers
What is a method type?
Why destructor is not used in java?
what is singleton class in java?
What's the default access specifier for variables and methods of a class?
What is the benefit of inner / nested classes ?
How does arrays sort work in java?
Can a constructor be private and how are this() and super() method used with constructor?
How do you do exponents in java?
What is the method to expand and collapse nodes in a jtree?
Define max and min heap, also the search time of heap.
Why super is first line in java?
What will be the default values of all the elements of an array defined as an instance variable?
Is java call by reference?
Is nan false?
In Java list the methods that can be overridden?