Java, Programming Languages, Programming, Object Oriented.
can run the code and check the output: package com.polovyi.ivan.tutorials; public class Examples { public static void main(String[] args) { Animal animal = new Animal("Animal", 1); Mammal mammal = new Mammal("Mammal", 2, true); Animal animalMammal = new Mammal("AnimalMammal", 2, true);