Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package com.mycompany.ja11;
- public class Engine {
- private double power;
- private String name;
- public Engine(double power, String name) {
- this.power = power;
- this.name = name;
- }
- public double getPower() {
- return power;
- }
- public void setPower(double power) {
- this.power = power;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement