100%(3)3 out of 3 people found this document helpful
This preview shows page 13 - 14 out of 14 pages.
Notice, the keyword open before the base class Employee, it's important.Overriding Member Functions and PropertiesIf the base class and the derived class have member functions or properties withthe same name :Calling Members of Base Class from Derived ClassMember functions of the base class can be called from a derived class using super keyword.-------------In string templates, a variable is embedded by prefixing with a dollar __ Which feature of Kotlin helps to extend a class with new functionality without Member functions of the base class can be called from a derived class using
}}If a variable is declared private, it is visible inside the class and its Constructors of the derived class calls the corresponding constructor of the