|
If there was another Interface instead of an abstract class, it wouldnt compile because they are conflicting, and the subclass might have to override this method. But because its an abstract class, Java lets you have such a method with the same name and it compiles.
Ramya Subraamanian wrote:B,D,E are the answers.
Ramya Subraamanian wrote:My assumption is wrong here I guess
If there was another Interface instead of an abstract class, it wouldnt compile because they are conflicting, and the subclass might have to override this method. But because its an abstract class, Java lets you have such a method with the same name and it compiles.
Ramya Subraamanian wrote:okay. do we get 0 points even if we get some answers partially right in the real exam ( like B,D instead B,D,E)???
Ramya Subraamanian wrote:Any insight into why the Abstract method is called and Interface method not called ?
Mushfiq Mammadov wrote:I couldn't understand what is relation between Abs class and Inf interface.
Amateurs built google. Professionals built the titanic. We can't find the guy that built this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|