Author Topic: Why can't create be overridden  (Read 578 times)


  • Hero Member
  • *****
  • Posts: 1460
Re: Why can't create be overridden
« Reply #15 on: May 17, 2019, 04:02:14 am »
The thing with non virtual methods is that you can hide them by introducing a new method of the same name
in derived classes. The nice trick is in the outside world, one can still Cast the Class instance and gain access to the previous
named method directly. This works ok as long as your methods are not virtual..

 When doing this to virtual methods, casting does not lead you that way due to the way the list is built in the background.