class Employee { private String id; private String name; private double salary; public String toString() { return id + " " + name + " " + salary; } public Employee() { salary = Math.round(Math.random() * 1000); } public Employee(String i, String n, double s) { id = i; name = n; salary = s; } } class Manager extends Employee { private double bonus; public String toString() { return super.toString() + " " + bonus; } public Manager(String i, String n, double s, double b) { super(i, n, s); bonus = b; } } class Main { public static void main(String[] args) { Employee e = new Manager("001", "Helena", 1000, 10); System.out.println(e); // Output: 001 Helena 1000.0 10.0 // Employee e1 = new Employee("002", "Helen", 1000); // System.out.println(e1); // Output: 002 Helen 1000.0 } }