Code: Select all
o1.mA(); //4
Moderator: admin
Code: Select all
o1.mA(); //4
Code: Select all
Book o1 = new Encyclopedia (); //3
Code: Select all
o1.mA(); //4
Line marked //2 doesn't compile because it is trying to override a final method. There is no problem with line marked //4 because Encylopedia inherits method mA() from Book.Sergey wrote:In other words, how could we run something if this "someting" is not compiled?
Users browsing this forum: Bing [Bot] and 11 guests