Mewar University
Mewar University
• Sub class - Subclass or Derived Class refers to a class that receives properties
from another class.
• Super class - The term "Base Class" or "Super Class" refers to the class from
which a subclass inherits its properties.
Inheritance
• Reusability - As a result, when we wish to create a new class, but an existing
class already contains some of the code we need, we can generate our new class
from the old class . This allows us to utilize the fields and methods of the pre-
existing class.
Polymorphism
• The word polymorphism means having many forms. In simple words, we can
define polymorphism as the ability of a message to be displayed in more than
one form. A person at the same time can have different characteristics. A man at
the same time is a father, a husband, and an employee. So the same person
possesses different behavior in different situations. This is called polymorphism.
An operation may exhibit different behaviors in different instances. The behavior
depends upon the types of data used in the operation. C++ supports operator
overloading and function overloading.
Abstraction
Hiding internal details and showing functionality is
known as abstraction. Data abstraction is the process of
exposing to the outside world only the information that is
absolutely necessary while concealing implementation or
background information.For example: phone call, we
don't know the internal processing.