How to create a subclass in C#?

Neel Desai picture Neel Desai · Nov 22, 2010 · Viewed 89.6k times · Source

How do I create a subclass in C# for ASP.NET using Visual Studio 2010?

Answer

Herman Cordes picture Herman Cordes · Nov 22, 2010

Do you mean this?

public class Foo
{}

public class Bar : Foo
{}

In this case, Bar is the sub class.