import 'dart:io'; void main() { Mother m1= Mother(age:33, name:"mom"); Daugther d1= Daugther(12,"eman"); m1.display(); d1.display(); } class Mother{ int age; String name; Mother({required int this.age,required String this.name}); void display(){ print("Mom Age ${this.age}, name ${this.name}"); } } class Daugther extends Mother{ Daugther(int age, String name):super(age:age, name:name); @override void display(){ print("Daugter Age ${this.age}, name ${this.name}"); } }