What is Object and Class? What are the differences between
them?
Answer Posted / jack
simple analogy for this quest is u declare int x;
and u ask diff between int and x;
Object is an instance of a class.......
--when an object of a class is created the memory for
that class is created...
--U can access the class members using the . operator in
your program....but u r not allowed to access the private
and protected members, which can be accessed by the member
functions only........
Class is the user defined datatype...which contains data
members and member functions.....
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is encapsulation in oops?
What is polymorphism in oops?
Which method cannot be overridden?
Why is abstraction needed?
Can main method override?
Can static class have constructor?
What is inheritance and how many types of inheritance?
What is class encapsulation?
What are the important components of cohesion?
Which is not an object oriented programming language?
What is interface in oop?
What is the benefit of oop?
Why is there no multiple inheritance?
What is static modifier?
What is new keyword in oops?