2016-03-24 36 views

cevap

0

statik olun, aksi takdirde kurucusundaki kodu kaçınarak ancak diğer örnek verilerine almak gerekir eğer, tek kodunuzu değil

public MyPage() 
{ 
    // code to avoid 
} 

public MyPage(bool otherData) 
{ 
    // don't run the code in the default constructor 
} 

O bağlıdır birini içeren olması yapıcısı aşırı çünkü kurucudan gitmek istemiyorsun.

İlgili konular