hacker rank java 42th proble solution(java method overriding)

42. method overriding




@Override
void getNumberOfTeamMembers(){
  System.out.println( "Each team has 11 players in " + getName());
  
}

Compiler Message
Success
Expected OutputDownload
Generic Sports
Each team has n players in Generic Sports
Soccer Class
Each team has 11 players in Soccer Class
{-truncated-}
Download to view the full testcase

Comments

Popular posts from this blog

Amazon Web Services

Google Code-In mentorship experience :)

Hacker Rank all java and python problem solutions