what is difference between class and object?
Answer Posted / kabita
class is a blueprint/framework which has no physical
existance and it is collection of similar properties and
behaviour of objects.
object is nothing which has physical existance, own
behaviour and properties.
it is also known as instance of class.
ex:Employee is a class and ram is aobject of this class.
| Is This Answer Correct ? | 42 Yes | 12 No |
Post New Answer View All Answers
Explain the difference between an object-oriented programming language and object-based programming language?
How do you define a parameter?
What is the size of a string in java?
What is the ==?
What is constructor chaining and how is it achieved in java?
How to run a JAR file through command prompt?
What is wrapper class html?
I want to print “hello” even before main is executed. How will you acheive that?
What is a map in java?
Why collection is called framework in java?
How do you make an arraylist empty in java?
What is difference between arraylist and list in java?
What is a parameter in simple terms?
What is the difference between pass by reference and pass by pointer?
Can we clone singleton object in java?