Hi, As we know that C# does not support multiple inheritances in classes.
But I need to do add the feature of both ClassA and ClassB in MyClass:
public class ClassA
{
public long Account_ID { get; set; }
}
public class ClassB
{
public string Name { get; set; }
}
// I want to achieve Something like this
public class ClassC : ClassA, ClassB
{
Public String AccountName {Get;Set;}
// To do Other Stuff
}
I am getting This error:
C# Class cannot have multiple base classes: and
Is there any way I can achieve this?
Thank you very much :)