GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-coding-problems/src/inheritance at main · jfullstackdev/java-coding-problems

Expand file tree

/

inheritance

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

inheritance

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Animal.java
Animal.java
 
 
Cat.java
Cat.java
 
 
README.md
README.md
 
 

README.md

Inheritance

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
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.