عنوان:

‫استفاده از کلمه کلیدی new در عنوان متدی که با متدی در base class آن همنام است


نویسنده: ایوب امینی
تاریخ: ۱۳۹۴/۰۷/۲۳ ۸:۴۴
آدرس: www.dntips.ir
When used as a declaration modifier, the new keyword explicitly hides a member that is inherited from a base class. When you hide an inherited member, the derived version of the member replaces the base class version. Although you can hide members without using the new modifier, you get a compiler warning. If you use new to explicitly hide a member, it suppresses this warning. 


مشاهده مطلب اصلی