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.
Java Inheritance I
Java Inheritance I
dvt32 + 0 comments These challenges are cool and all, but in this particular one - you don't really practice inheritance, do you? The "inheritance" part is pretty much done for you and you're basicallly practicing writing a simple method.
Still, I love HackerRank and this is just a minor issue.
atreides + 0 comments "then modify the main method accordingly" would you be so kind and remove that statement ? or... let us modify the main method then....
hamedmoradi_mai1 + 0 comments class Bird extends Animal implements asd{ void fly(){ System.out.println("I am flying"); } public void sing() { System.out.println("I am singing"); } } interface asd{ void sing(); }
siddharth_nawani + 0 comments void sing() { System.out.println("I am singing"); }
tejasriveenam + 0 comments class Bird extends Animal implements asd{ void fly(){ System.out.println("I am flying"); } public void sing() { System.out.println("I am singing"); } } interface asd{ void sing(); }
Load more conversations
Sort 41 Discussions, By:
Please Login in order to post a comment