Implementation Inheritance
Notes from Josh Hug's lecture videos.
Extends
public class Steven extends BaldMan {
//Stuff...
}super
public class Steven extends BaldMan {
@Override
public void applyRogaine() {
super.applyRogaine(); // Do everything the original method did...
System.out.println("Steego"); // But also print this.
}
}Encapsulation
Last updated