超类:
public class Card
{
...
public boolean isExpired() //Card never expires.
{
return false;
}
}
子类:
public class IDCard extends Card {}
public class PhoneCard extends Card {}
问:身份证和电话卡不会过期。你应该怎么做才能在你的实施中反映这个事实?