I'm creating a grid based game.
I need to implement a set of obstacles that take random positions within the grid.
I've created an abstract class ALifeForm
, that holds the common methods for every item within the grid. Obviously, abstract classes can't be initialised, so I was going to create a new class AObstacle
, which will extend ALifeForm
.
Only issue is, my AObstacle
class isn't specialised. All the methods it needs are within ALifeForm
.
Can I have an empty class? Is it bad programming practice? And if so, what can I implement instead?