What is the difference between an object and a class?
Answer Posted / manas
a class is a datatype that abstratcs data and implementations
while an object is an instance of the class which wraps up data. An object has identity, state and behavior
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is inheritance and how many types of inheritance?
What is the purpose of polymorphism?
Can we have inheritance without polymorphism?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What is the real time example of inheritance?
Why is polymorphism used?
What is overriding in oops?
What are the benefits of polymorphism?
Is react oop?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What is oops and why we use oops?
What is oops and its features?
What is polymorphism explain?
What is encapsulation selenium?
Can private class be inherited?