Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ScentedCandle extends Candle {
- private String scent;
- protected String getScent() {
- return scent;
- }
- protected void setScent(String scent) {
- this.scent = scent;
- }
- @Override
- protected void setHeight(double height) {
- super.setHeight(height);
- this.price = height*3;
- }
- }
Add Comment
Please, Sign In to add comment