19. C# – #Inheritance and #Polymorphism



19. C# – #Inheritance and #Polymorphism

19. C# - #Inheritance and #Polymorphism

What is Inheritance?
Inheritance in #object #oriented #programming is used to makes applications faster and simpler.
With inheritance, we build several #types based on a single #abstraction.

Inheritance defines which is the base/parent #class and which is the child one.
A child class is a class that inherits from another one. And the class that other classes inherit from is the base class.

In C# the ultimate base class is the object class.

What is Polymorphismin C#?
The word polymorphism means having many forms. And in C# is a concept wherein a method can be defined more than one time.

There are two Types of Polymorphism:
1. Method Overloading
2. Method Overriding

Check out this tutorial to learn more…

-~-~~-~~~-~~-~-
Check out:
– LinkedIn Learning: http://bit.ly/2PxsH57
– Pluralsight: http://bit.ly/2EsgjlJ
– Udemy: http://bit.ly/2QP5P5V
– YouTube: http://bit.ly/2pVlkwO
-~-~~-~~~-~~-~-

Comments are closed.