Coding Programming Quiz 21: overriding vs hiding in C# | inheritance in C#
In C#, inheritance allows us to create a new class from an existing class. It is a key feature of Object-Oriented Programming (OOP). The derived class inherits the fields and methods of the base class. This helps with the code reusability in C#.
In C# there are two mechanisms for redefining or providing the new implementation of a method of parent class by its child class and these two mechanisms are known as Method overriding and Method hiding. Now on the basis of how method re-implementation is done we can distinguish between both of them.
#CodeWithCougar
Please Subscribe to Code With Cougar:
https://www.youtube.com/channel/UCXVY3Rdc1nuduyogPVjJTyA
Видео Coding Programming Quiz 21: overriding vs hiding in C# | inheritance in C# канала Code With Cougar
In C# there are two mechanisms for redefining or providing the new implementation of a method of parent class by its child class and these two mechanisms are known as Method overriding and Method hiding. Now on the basis of how method re-implementation is done we can distinguish between both of them.
#CodeWithCougar
Please Subscribe to Code With Cougar:
https://www.youtube.com/channel/UCXVY3Rdc1nuduyogPVjJTyA
Видео Coding Programming Quiz 21: overriding vs hiding in C# | inheritance in C# канала Code With Cougar
Комментарии отсутствуют
Информация о видео
30 сентября 2022 г. 13:55:40
00:04:28
Другие видео канала