WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND
ENCAPSULATION?
PLEASE EXPLAIN IT.
Answer Posted / ganesh
ABSTRACTION
An abstract class is a parent class that allows inheritance
but can never be instantiated. Abstract classes contain one
or more abstract methods that do not have implementation.
Abstract classes allow specialization of inherited classes.
ENCAPSULATION:
Wrapping up of data into a single unit..
| Is This Answer Correct ? | 7 Yes | 17 No |
Post New Answer View All Answers
write a C++ program for booking using constructor and destructor.
How Do you Code Composition and Aggregation in C++ ?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is oops and why we use oops?
What is difference between abstraction and encapsulation?
How to call a non virtual function in the derived class by using base class pointer
What is an advantage of polymorphism?
Can a destructor be called directly?
What is the real time example of encapsulation?
What is the difference between static polymorphism and dynamic polymorphism?
What is this pointer in oop?
write a program that takes input in digits and display the result in words from 1 to 1000
Describe these concepts: Polymorphism, Inheritance and Abstraction.
what is difference between class template and template class?
What is object in oops?