In order to implement inheritance, it needs to be separated in one folder,
so if you are in src folder,
cd inheritance
then, we need to compile it first since we will be using another class
javac Animal.java Cat.java
then
java Cat
GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||
GeezerVison is showing github.com — java-coding-problems/src/inheritance at main · jfullstackdev/java-coding-problems Expand file tree/ Copy pathinheritance/Directory actionsMore optionsMore optionsDirectory actionsMore optionsMore options/ Copy pathinheritance/Folders and files
| ||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | ||||||||||||||||||||||||||