extends is a relationship or has a relationship java code example
Example: is a relationsiop in java
public class Actress extends Person { public String readScript(String movie) { return "Reading the script of " + movie; } // additional methods/constructors}