what is difference between class and object?

Answer Posted / maurya

class is a totally logical perseption while we r making a
class we think only WHAT and HOW. but an object is fully
physical perseption when we create an object we get th
physical entity of class. object has its existance but a
class dont.
through WHAT of a class we define state ie. what should be
in my object and through HOW we define behavior of object
ie. how and what function perform on my object to change
its behavior.
an object is actually type of class.....!!

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by oops concept in java?

508


How many bits is a boolean?

626


How can you write a loop indefinitely in java programming?

556


What are sets in java?

509


Is string a datatype?

555






Why is the main method declared static?

588


What is an iterator java?

533


What is method in java with example?

493


What does provide mean construction?

558


Explain inner classes ?

655


What are the common uses of "this" keyword in java ?

573


Can we catch more than one exception in single catch block?

605


What is an iterator interface in java programming?

541


What is the concept of multithreading?

523


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

524