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 use of overloading?

872


What is object in oop?

890


What is an advantage of polymorphism?

832


What does no cap mean?

815


How to hide the base class functionality in Inheritance?

873


Write a program to reverse a string using recursive function?

2044


c++ program to swap the objects of two different classes

2144


When not to use object oriented programming?

797


What is pure oop?

871


What is polymorphism oop?

842


What is difference between abstraction and encapsulation?

827


How do you explain polymorphism?

823


write a program that takes input in digits and display the result in words from 1 to 1000

2204


What is difference between inheritance and polymorphism?

794


what are the ways in which a constructors can be called?

1813