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 use of overloading?
What is object in oop?
What is an advantage of polymorphism?
What does no cap mean?
How to hide the base class functionality in Inheritance?
Write a program to reverse a string using recursive function?
c++ program to swap the objects of two different classes
When not to use object oriented programming?
What is pure oop?
What is polymorphism oop?
What is difference between abstraction and encapsulation?
How do you explain polymorphism?
write a program that takes input in digits and display the result in words from 1 to 1000
What is difference between inheritance and polymorphism?
what are the ways in which a constructors can be called?