class LB2 extends LB1 public String retValueString s return In LB2 with s class

Class lb2 extends lb1 public string retvaluestring s

This preview shows page 14 - 21 out of 31 pages.

class LB_2 extends LB_1 { public String retValue(String s) { return "In LB_2 with " + s; } } class A { public static void main (String[] args) LB_2 lb2 = new LB_2(); LB_1 lb3 = lb2; // compiles ok System.out.println(lb3.retValue("Today")); }
Image of page 14