what is difference between class and object?
Answer Posted / zishan shaukat
I think class is a room full of tables and chairs with n
number of students sitting inside it and a teacher teaching
them something on the blackboard.
Wheras individual commodities like table ,chair blackboard
chalk pen and paper are objects.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the types of literals?
What is variable explain with example?
What does the “final” keyword mean in front of a variable? A method? A class?
Explain, java is compatible with all servers but not all browsers?
What is abstraction in java?
Does windows 10 need java?
what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread
What is the difference between compare and compareto in java?
What are the six ways to use this keyword?
What is the purpose of skeleton and stub?
Why does java not support operator overloading?
Given a singly linked list, determine whether it contains a loop or not without using temporary space?
What does || mean in code?
Can a lock be acquired on a class in java programming?
What is the difference between overriding and overloading in OOPS.