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.ja7;
- public class Engine {
- private String name;
- private double power;
- // Alt + Insert
- public Engine(String name, double power) {
- this.name = name;
- this.power = power;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public double getPower() {
- return power;
- }
- public void setPower(double power) {
- this.power = power;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement