| http://www.w3.org/ns/prov#value | - let me take another example class Fruit{ public void taste(){SOP("sweet);} , class Grape extends Fruit{ public void taste(){SOP("sour);} now in main Fruit f = new Grape(); and if you invoke f.taste(); ` it will invoke Grape's version , as we have Fruit is reference to grape's object. and Fruit contains method taste() and Grape is a Fruit
|