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 the point of oop?

642


What is destructor give example?

591


What is the difference between procedural programming and oops?

542


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

2737


What are objects in oop?

598






Can an interface inherit a class?

549


What is the benefit of oop?

561


What are main features of oop?

617


Why do we use polymorphism in oops?

564


Is react oop?

601


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3545


What are the types of abstraction?

543


What is oops in programming?

556


What are the important components of cohesion?

542


What is meant by multiple inheritance?

726