我已經實現在基類中的方法如下的方法:優勢通話使用基本指針
class A
{
protected void f1()
{
}
}
class A1 : A
{
public void f2()
{
//Simple Calling
f1();
//Calling using base pointer
base.f1();
}
}
是什麼調用簡單地之間的差異,使用基類指針調用?這兩種方式的優點是什麼?
默認情況下,C#中不存在快速提示 - 指針(除非使用不安全代碼),則基本上使用'base'關鍵字。 –