/* * 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; } }