Hackerrank Java Inheritance I Solution
Using inheritance, one class can acquire the properties of others. Consider the following Animal class:class Animal{ void walk(){ System.out.println("I am walking"); }}
This class has only one method, walk. Next, we want to create a Bird class that also has a fly method. We do