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, 3 months agovidhuharu
Most Recent 6 months, 3 weeks agoasdfjhfgjuaDCV
1 year, 1 month agosteefaand
1 year, 2 months agoSamriddji
3 years, 5 months agoSvetleto13
3 years, 10 months agojduarte
4 years agothetech
5 years, 5 months ago