Is there way for a class to 'remove' methods that it has inherited?

后端 未结 4 1721
梦如初夏
梦如初夏 2020-12-29 22:28

Is there way for a class to \'remove\' methods that it has inherited?

E.g. if I don\'t want my class to have a ToString() method can I do something so t

4条回答
  •  庸人自扰
    2020-12-29 23:05

    Short awnser, NO as all classes inherit from object and object has this method.

提交回复
热议问题