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


Please Help Members By Posting Answers For Below Questions

What is encapsulation in oops?

529


What is polymorphism in oops?

551


Which method cannot be overridden?

571


Why is abstraction needed?

558


Can main method override?

578






Can static class have constructor?

577


What is inheritance and how many types of inheritance?

607


What is class encapsulation?

583


What are the important components of cohesion?

546


Which is not an object oriented programming language?

530


What is interface in oop?

653


What is the benefit of oop?

564


Why is there no multiple inheritance?

560


What is static modifier?

623


What is new keyword in oops?

585