hi danpost, super_hippo
I am doing a hospital program for the longest time. my question is how do you get around to use an instantiate object. without removing the abstract from the other class.


1 | AbstractClass obj = new AbstractClass(); |
1 | public class NonAbstractClass extends AbstractClass { } |
1 | AbstractClass obj = new NonAbstractClass(); |
1 | AbstractClass obj = new AbstractClass(){}; |
1 2 3 4 | public Actor getNewStaticActor() { return new Actor() { public void setLocation( int x, int y){} }; } |