79586209

Date: 2025-04-22 10:34:07
Score: 0.5
Natty:
Report link

Make sure you’re casting the container first, and then calling getID().

((Worker) this.getContainer()).getID();

Or add an abstract method, so you would not need to cast it at all.

public abstract class Container {
    public abstract Object getID();
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vasil