what is difference between class and object?
Answer Posted / deepak
class is a collection of its instance members like
variables and method. Objects are declared in the class.
Objects are nothing but a entity which keeps the refrence.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
What is high level language in computer?
What is a nonetype?
Similarity and difference between static block and static method ?
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?
What is finalize() function in java?
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
What is a void method?
Why we cannot override static method?
What is functional interface in javatpoint?
What is the benefit of using enum to declare a constant?
Convert Binary tree to linked list.
If a method is declared as protected, where may the method be accessed in java programming?
What is the difference between and ?
What are the advantages of assembly language?
Why is flag used in java?