Notice the keyword open before the base class Employee its important Overriding

Notice the keyword open before the base class

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
Background image
}}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
Background image

You've reached the end of your free preview.

Want to read all 14 pages?

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture