Design an Enemy Factory

Design an Enemy factory to return different enemy instances.

Suppose you are working for a very large online micro-multiplayer game company. In this game, there is a subsystem responsible for managin...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: