How to create a subclass in C#?

前端 未结 4 1372
离开以前
离开以前 2020-12-30 02:14

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

4条回答
  •  囚心锁ツ
    2020-12-30 02:55

    Do you mean this?

    public class Foo
    {}
    
    public class Bar : Foo
    {}
    

    In this case, Bar is the sub class.

提交回复
热议问题