Академический Документы
Профессиональный Документы
Культура Документы
By Võ văn Hɠi
Tháng 09/2007
r
h ð ð
ð
ððð
ðð
ð
ðð
a
h Ñ
ð
is a ð
ð
that declares a new class.
h class-declaration:
ðð ð
ð
ð
class ð
ð
;
ð
a
h Ñ
ð
may optionally
include a sequence of class modifiers:
[ new
[ public
[ protected
[ internal
[ private
[ abstract
r
h Ñ
ð
is
permitted to declare a member with
the same name or signature as an
inherited member.
h Vhen this occurs, the derived class
member is said to i the base class
member.
h ?t specifies that the class hides an
inherited member by the same name.
r
class Ñ
class Test
// Ñuthor Ñ
namespace Ñ
'ystem.Console.VriteLine("Base.F");
}
}
}
// Ñuthor Ñ
namespace Ñ
'ystem.Console.VriteLine("Base.F");
}
}
}
// Ñuthor B
namespace B
'ystem.Console.VriteLine("rerived.F");
}
}
}
// Ñuthor B
namespace B
r
ð ð
http://vovanhaiQN.googlepages.com