Beispiel #1
0
    static void Main(string[] args)
    {
        Cpu c1 = new Cpu();
        c1.fun();
        Cpu c2 = new IntelCpu();
        c2.fun();
        Cpu c3 = new CoreCpu();
        c3.fun();
        IntelCpu c4 = new CoreCpu();
        c4.fun();

        Type t1 = c1.GetType();
        Type t2 = c2.GetType();
        Type t3 = c3.GetType();
        Type t4 = c4.GetType();
    }