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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top