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
What is meant by oops concept in java?
How many bits is a boolean?
How can you write a loop indefinitely in java programming?
What are sets in java?
Is string a datatype?
Why is the main method declared static?
What is an iterator java?
What is method in java with example?
What does provide mean construction?
Explain inner classes ?
What are the common uses of "this" keyword in java ?
Can we catch more than one exception in single catch block?
What is an iterator interface in java programming?
What is the concept of multithreading?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.