Inheritance question.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hey,

I want to inherit an abstract class and MessageWindow class.
can we do that?

for example,

abstract class SomeClass
{
public void SomeMethod()
{
// do something
}
}

can I create a new class which inherits both the above abstract class and
MessageWindow class?

public class MyClass : SomeClass, MessageWindow
{

}

Kindly let me know,

Cheers,

Naveen.
 
Sorry, no.

..NET allows for single inheritance only. You can inherit from multiple
interfaces though (and interfaces can inherit from other interfaces etc)

Cheers
Daniel
 
Back
Top