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 hotjava?

554


How many bytes is a string java?

527


How do you find the independent variable?

514


What do you mean by order of precedence and associativity?

545


What is token in java?

533






What is function overriding and overloading in java?

580


What is the difference between heap and stack memory?

543


What is functional interface in java?

513


How do you do math powers in java?

573


what are three ways in which a thread can enter the waiting state? : Java thread

572


Explain differences between checked and unchecked exceptions in java?

634


Is overriding possible in java?

504


What is a finally block? Is there a case when finally will not execute?

548


What is an i/o filter?

565


Is null function in java?

564