Skip to content

Hello world #478

Description

@Rohithreddy745

class Employee {
String name;
String role;

Employee(String name, String role) {
    this.name = name;
    this.role = role;
}

void display() {
    System.out.println(name + " - " + role);
}

}

public class Organization {
public static void main(String[] args) {

    Employee manager = new Employee("Rohith", "Manager");
    Employee developer = new Employee("Rahul", "Developer");
    Employee tester = new Employee("Priya", "Tester");

    System.out.println("Organization: ABC Technologies");
    System.out.println("----------------------------");

    manager.display();
    developer.display();
    tester.display();
}

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions