is a vs has a 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}