C# Interface inheritance
This Report Clarifies the following:
The way to use a port in C#? What’s an interface? What’s the very best illustration of an interface? The way to use a port I expect everyone is very knowledgeable about OOP concepts in C++. Inheritance allows creating courses which are derived from different classes, so they automatically incorporate a number of its "parent” associates, and its own. Listed below are kinds of inheritances.
Multi-Level Inheritance
- class Father {
- //Father Relations — Members
- }
- class Mother: Father {
- //Mother Relations — Members
- }
- class Child: Mother //Multi- Level Inheritance
- {
- //Accessing both Relations class members.
- }
Multiple Inheritance
- class Father {
- //Father Relations — Members
- }
- class Mother {
- //Mother Relations — Members
- }
- class Child: Mother, Father //Multiple Inheritance
- {
- //Accessing both Relations class members.
- }
This type of multiple inheritance is possible in C++ but it’s not possible in C#.
By Pranit Seva ( I written other c# interface related articles )