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 is fundamental datatype?
Can a static method be overridden in java?
Why enumeration is faster than iterator?
What are the legal operands of the instanceof operator?
Define Multiprogramming and Multiprocessing in java.
What is diamond operator in java?
What is difference between char array and string?
What is singleton class in ruby?
what is bmg file and how to create that files?what will it contailn?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
What is the use of volatile in java?
Can we declare array without size in java?
Can we override constructors?
Write a function for palindrome and factorial and explain?
How do you make a thread in java?