日期:2014-05-17 浏览次数:21334 次
class M { }
class D { }
class CPU { }
interface IPCCPU { }
class CPU1 : CPU, IPCCPU { }
class CPU2 : CPU, IPCCPU { }
class CPU4 : CPU { }
class C
{
public CPU cpu;
public M monitor;
public D harddriver;
}
class SC : C
{
public SC(CPU4 _cpu) { this.cpu = _cpu; }
}
class PC : C
{
public SC(IPCCPU _cpu) { this.cpu = _cpu as CPU; }
}