zoukankan      html  css  js  c++  java
  • C#抽象类

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    //抽象类的一个实例
    namespace Abstruct
    {
        abstract class Abclass
        { 
            public void IdentifyBase()
            {
                Console.WriteLine("I am  AbClass!");
            }
            abstract public void IdentifyDerived();
        }
        class DerivedClass :Abclass
        {
            override public void IdentifyDerived()
            {
                Console.WriteLine("I Am  DerivedClass");
            }
        }
        class Program
        {
            static void Main(string[] args)
            {
                DerivedClass dc = new DerivedClass();
                dc.IdentifyBase();
                dc.IdentifyDerived();
                Console.ReadKey();
            }
        }
    }
  • 相关阅读:
    [BZOJ1584][Usaco2009 Mar]Cleaning Up 打扫卫生
    CSS浮动
    Django by example -----1总结
    C#函数重载
    linux目录的特点
    Linux调优
    linux
    对齐方式
    19-10-25-G-悲伤
    19-10-24-H
  • 原文地址:https://www.cnblogs.com/sulong/p/4793855.html
Copyright © 2011-2022 走看看