Answer Posted / murthy
A class is neither an object nor an object is a class.
A class is like a blue print for an object.
An object is an instance of a class.
Some people have given the right examples above and some
more goes here:
You can consider a blue print for your house is a class.
You cannot stay in blue print :).
The building built based on the blue print is called an
object. You can stay in it.
Class should be treated like a "data type" and an object
like a instance of that datatype.
for e.g., int i; you can considet int as a class and i as
an instance of an object.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are Classes and Objects?
What are the basic concepts of oop?
Describe the Diamond problem. Where does this problem occur?
What are sealed modifiers?
Name some languages which have object oriented language and characteristics?
Name the different creational patterns in object oriented design?
What is the difference between data hiding and implementation?
What are the rules to define a functional interface?
What are the different types of arguments?
What is bootstrap, extension and system class loader? Or can you explain primordial class loader?
what three "domains" are considered during analysis modeling?
Write a note about inheritance?
Explain about uml?
Explain serialization and overriding?
What is the syntax of object oriented method call?