You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace InterfaceStudy.Core
|
|
|
|
|
{
|
|
|
|
|
public class ChildB : ExplicitBase
|
|
|
|
|
{
|
|
|
|
|
//可使用new关键字,表明有意隐藏继承成员 ExplicitBase.Number
|
|
|
|
|
int Number = -1;
|
|
|
|
|
|
|
|
|
|
public override int GetNumber()
|
|
|
|
|
{
|
|
|
|
|
return --Number;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|