Horje
c# multiple inheritance Code Example
c# multiple inheritance
public interface IFirst { void FirstMethod(); }
public interface ISecond { void SecondMethod(); }

public class First:IFirst 
{ 
    public void FirstMethod() { Console.WriteLine("First"); } 
}

public class Second:ISecond 
{ 
    public void SecondMethod() { Console.WriteLine("Second"); } 
}

public class FirstAndSecond: IFirst, ISecond
{
    First first = new First();
    Second second = new Second();
    public void FirstMethod() { first.FirstMethod(); }
    public void SecondMethod() { second.SecondMethod(); }
}




Csharp

Related
enum extends dictionary c# Code Example enum extends dictionary c# Code Example
trigger enter with nav mesh Code Example trigger enter with nav mesh Code Example
meaning immutable and mutable Code Example meaning immutable and mutable Code Example
Functional Component Lifecycle Code Example Functional Component Lifecycle Code Example
SQLite insert data in C# (Source:NAYCode.com) Code Example SQLite insert data in C# (Source:NAYCode.com) Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10