Overloading/Overwriting of methods

to keep in mind:

  • Overloading is the creation of a method in a class with the same name as an already existing method, but with different arguments.
  • Overwriting is the creation of a method in a derived class with the same name as an already existing method in the base class and with the same arguments

Leave a Reply

Your email address will not be published. Required fields are marked *