19. C# - #Inheritance and #Polymorphism

preview_player
Показать описание
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:
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

This was great, I finally understand the basics of polymorphism thanks to this video :) thankyou!

mother_of_dinos
Автор

I have just come across your channel and your way of describing topics is so clear and concise. Other videos tend to over complicate subjects but your style of teaching is just perfect! Thank you for uploading these videos, you have just gained another subscriber! Thank you

rlangers
Автор

Very well contained, not verbose and hits all marks! Well done friend

vzntoup
Автор

Hi Ervis! Great tutorial, I learned a lot :)

Could you please let me know if you made a mistake at approximately 6:45 --> 7:05 in the video?

Am I mistaken or did you call the Student:Person class the base class at around 6:55? Isn't the Student:Person the derived child class of Person in this case?

If I am mistaken, please feel free to correct me, I might just be a little confused about that part.

Thanks! 🙂

poloska
Автор

finally, i get to understand what my lecturer was trying to explain. thanks for this

kainzascovia
Автор

very nice video. keep the good work going on :)

gautambedi
Автор

Please get rid of the background It may be gentle it still is distracting….

brioown
Автор

Remove the music from your video, how can people learn with music, it's disturbing.

programmingempire
Автор

wtf is that annoying music. Turn it down Turnnn it down

FaizanWaseem