Java, Programming Languages, Programming, Object Oriented.
create an object of this new class and call the same method. package com.polovyi.ivan.tutorials; public class Examples { public static void main(String[] args) { Mammal mammal = new Mammal("Mammal", 2, true); mammal.displayDetails(); } } // Animal Name: Mammal, Age: 2 This call invoked the parent