// Example : class Laptop { // Method void show() { print("Laptop show method"); } } class MacBook extends Laptop { void show() { super.show(); // Calling the show method of the parent class print("MacBook show method"); } } void main() { // Creating an object of the MacBook class MacBook macbook = MacBook(); macbook.show(); } // Result: /* Laptop show method MacBook show method */