i dont understand what im missing
package com.codegym.task.task12.task1215;
/*
Cats should not be abstract!
*/
public class Solution {
public static void main(String[] args) {
}
public static abstract class Pet {
public abstract String getName();
public abstract Pet getChild();
}
public static class Cat extends Pet{
public Pet getChild(){return null}
}
public static class Dog extends Pet{
public Pet getChild(){return null;}
}
}
I dont understand what im missing
Resolved
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Ian Frierson
29 October 2019, 21:20
Thanks. I was not fully reading the error message. was able to figure it out.
0
Guadalupe Gagnon
29 October 2019, 19:21
If you have intelliJ then hit alt+enter where the red squiggly lines are and hit implement methods. If you don't have intelliJ then go get intelliJ, get to this point in the task, hit alt+enter on the red squiggly lines and select implement methods.
+1