/* * 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 MechanicalDevice extends Device{ private String name = "velo"; @Override public void print() { System.out.println("Device: demention=" + getLength() + "/" + getWidth() + "/" + getHeight() + ", typeDevice=" + name); } }