It should be illegal for a derived class to override a base class method with a NOP method, that is, a method that does nothing.

 
  • 在派生类中用空方法(也就是什么也不做的方法)来覆写基类中的方法应当是非法的。
今日热词
目录 附录 查词历史