自定义类
2012-04-26 21:40 精诚所至 金石为开 阅读(466) 评论(0) 编辑 收藏 举报自定义类。
using System; namespace a { public abstract class MyBase { } internal class MyClass:MyBase { } public interface IMyBaseInterface { } internal interface IMyBaseInterface2 { } internal interface IMyInterface:IMyBaseInterface,IMyBaseInterface2 { } internal sealed class MyComplexClass:MyClass,IMyInterface { } class Program { static void Main(string[] args) { MyComplexClass myObj=new MyComplexClass(); Console.WriteLine(myObj.ToString()); Console.ReadKey(); } } }