шпаргалки
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.0 KiB

2 years ago
/*
* 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 dev_j2022_2;
/**
*
* @author denis
*/
public class ElectronicDevice extends Device{
private int current;
private int voltage;
private int power;
@Override
public void print() {
System.out.println("Device: demention=" + getLength() + "/" + getWidth() + "/" + getHeight() +
", electronicCharacter=" + voltage + "V");
}
public int getCurrent() {
return current;
}
public void setCurrent(int current) {
this.current = current;
}
public int getVoltage() {
return voltage;
}
public void setVoltage(int voltage) {
this.voltage = voltage;
}
public int getPower() {
return power;
}
public void setPower(int power) {
this.power = power;
}
}