Dependency injection (DI) is a wonderful thing. Simply add your dependency as a parameter to the constructor (most commonly) of your class, register i…
All the functions in a class should have at least one parameter and by default, we call it self.
self is a reference to the current object
I just saw somewhere in an FB Community group asking how they are able to share the properties from a User interface to a PublicUser inte…
What comes to mind when YOU hear the word Inheritance?
The concept of inheritance could also be applied to real life aspects, for example: Money, Gene…
Inheritance in solidity is basically extending the functionality of one contract into another contract.
This is simply done by adding the keyword "IS"…