We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
To test that MyBook really extends Book you need in the main function change Book new_novel=new MyBook();
Because with current MyBook new_novel = .. I was able create a class MyBook without Book class extension.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Abstract Class
You are viewing a single comment's thread. Return to all comments →
To test that MyBook really extends Book you need in the main function change Book new_novel=new MyBook(); Because with current MyBook new_novel = .. I was able create a class MyBook without Book class extension.