hacker rank 38th problem solution(java inheritance 1)

38. JAVA INHERITANCE 1




class Bird extends Animal{
void fly(){
System.out.println("I am flying");
}
  void sing(){
    System.out.println("I am singing");
  }
}



Compiler Message
Success
Expected OutputDownload
I am walking
I am flying
I am singing

Comments

Popular posts from this blog

Amazon Web Services

Google Code-In mentorship experience :)

Hacker Rank all java and python problem solutions