what is difference between class and object?

Answer Posted / deen muhammad

I think a class is the superset of an object and object is
subset of a class.
A class contain so many objects but an object only belongs
to one class
example: A human being is a class while its body parts are
the objects of that class.

Is This Answer Correct ?    11 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why bytecode is called bytecode?

592


What is difference between final and finally in java?

587


What is purpose of find feature?

616


What are the kinds of polymorphism?

615


What is overloading and overriding in java?

662






Is it possible to compare various strings with the help of == operator? What are the risks involved?

622


Is it possible to use string in the switch case?

556


what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

501


How do you calculate square roots?

581


String class is defined under which package in java?

625


What is == and === in javascript?

561


Is null a string or object in java?

554


What is exception in java?

570


How do you declare an array that will hold more than 64KB of data?

646


What is an example of declaration?

528