public abstract class Employee { private String name; private String city; private double salary; public Employee(String name, String city, double salary) { this.name = name; this.city = city; this.salary = salary; } public abstract String getRole(); @Override public String toString() { return name + " " + city + " " + salary; } public String getName() { return name; } public String getCity() { return city; } public double getSalary() { return salary; } }