HashLDash / Photon

Lightning fast and portable programming language!
GNU General Public License v2.0
68 stars 10 forks source link

Implement super call #131

Closed HashLDash closed 2 years ago

HashLDash commented 2 years ago

When inheriting from a class, it is common to augment some of the functionality of the methods. To avoid copying and pasting the inherited method code, we should just call it by using the super keyword.

super.render() # would call the inherited render method instead of the overriden render method