package Lect42Review; public class FilmCamera extends Camera implements Battery { public FilmCamera() { maxPhotos = 0; availableShots = 0; remainingPower = 400.00; } public void loadRole(int numberExposures) { maxPhotos = numberExposures; availableShots = maxPhotos; remainingPower -= 1.0; } public void takePicture() { if ((availableShots > 0) && (remainingPower >= 2.0)) { System.out.println("Taking film picture"); availableShots--; remainingPower -= 2.0; } } public void rewindRole() { System.out.println("Rewinding Role"); remainingPower -= 3.0; } // Interface methods public String getBatteryType() { return "AAA"; } public double getRemainingPower() { return remainingPower; } }