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


Please Help Members By Posting Answers For Below Questions

What is fundamental datatype?

531


Can a static method be overridden in java?

559


Why enumeration is faster than iterator?

531


What are the legal operands of the instanceof operator?

568


Define Multiprogramming and Multiprocessing in java.

586






What is diamond operator in java?

503


What is difference between char array and string?

528


What is singleton class in ruby?

564


what is bmg file and how to create that files?what will it contailn?

1896


How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

547


What is the use of volatile in java?

604


Can we declare array without size in java?

555


Can we override constructors?

545


Write a function for palindrome and factorial and explain?

661


How do you make a thread in java?

635