Given:
Book.java:
public class Book {
private String read(String bname) { return "Read" + bname }
}
EBook.java:
public class EBook extends Book {
public class String read (String url) { return "View" + url }
}
Test.java:
public class Test {
public static void main (String[] args) {
Book b1 = new Book();
b1.read("Java Programing");
Book b2 = new EBook();
b2.read("http://ebook.com/ebook");
}
}
What is the result?
Innovation
Highly Voted 5 years agovidhuharu
Most Recent 3 months, 2 weeks agoasdfjhfgjuaDCV
10 months, 2 weeks agosteefaand
11 months, 2 weeks agoSamriddji
3 years, 1 month agoSvetleto13
3 years, 7 months agojduarte
3 years, 9 months agothetech
5 years, 1 month ago