Exemplo n.º 1
0
  public static void main(String[] args) {

    System.out.println("selenium webdriver");

    EncapsulationDemo obj = new EncapsulationDemo();
    obj.TestAdd();

    EncapsulationDemo obj1 = new EncapsulationDemo();
    obj1.TestSubs();

    System.out.println("exit program");
  }
Exemplo n.º 2
0
 public static void main(String args[]) {
   EncapsulationDemo obj = new EncapsulationDemo();
   obj.setEmpName("Mario");
   obj.setEmpAge(32);
   obj.setEmpSsn(112233);
   System.out.println("Employee Name: " + obj.getempName());
   System.out.println("Employee SSN: " + obj.getempSSN());
   System.out.println("Employee Age: " + obj.getempAge());
 }