




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





class Maze { public void place(IPlaceable p) { //select location on the Maze p.draw(location); } } Maze maze = new Maze(); PackMan packMan = new PackMan(); maze.place(pacMan);
Inheritance
Interface