I was experimenting with inheritance, trying to write an example for myself from scratch. For testing purposes, I wanted my child class to print something from my parent class, but what I get is "cannot find symbol" in my IDE. What am I doing wrong?
Parent class:
Child class:
package Human; public class Legs extends Human { public Legs() { super(); } public Legs(int legs) { legs = 2; } public Legs (Human h){ super(h.getSkin()); } System.out.println(super.getSkin()); }