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 are the 3 pillars of oop?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What is class and example?
What is encapsulation and abstraction? How are they implemented in C++?
How to call a non virtual function in the derived class by using base class pointer
What is encapsulation with real life example?
Which language is not a true object oriented programming language?
What is the diamond problem in inheritance?
Why we use classes in oop?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What is this pointer in oop?
What are benefits of oop?
Can we create object of interface?
Why do we use oops?
What are classes oop?