Help me pls with this(
package com.codegym.task.task12.task1202;
/*
Whales, the descendants of cows
*/
public class Solution {
public static void main(String[] args) {
Cow cow = new Whale();
System.out.println(cow.getName());
}
public static class Cow {
public String getName() {
return "I'm a cow";
}
}
public static class Whale extends Cow {
public String getName() {
return " ";
}
}
}