Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ScenteCandle extends Candle {
- String scent;
- public void getScent() {
- System.out.println(scent);
- }
- public void setScent(String scent) {
- this.scent =.scent;
- }
- public void setHeight() {
- this.height = height;
- this.price = height*3;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement