// Example 1 of Object Oriented Programming
(OOP)
public class business
{
public static void main(String[] args)
{
Employee E1 = new Employee();
Employee E2 = new Employee();
E1.Name = "Kirk";
E2.Name = "Liliana";
E1.HourlyWage = 25;
E2.HourlyWage = 18;
System.out.println(E1.Name + "
makes $" + E1.HourlyWage + " per hour");
System.out.println(E2.Name + "
makes $" + E2.HourlyWage + " per hour");
}
}
class Employee
{
String Name;
double HourlyWage;
}