Package prototype

Source Code of prototype.MainPrototype

package prototype;

import prototype.People;

public class MainPrototype {

  /**
   * ejemplo
   * @param args
   */
   
  public static void main(String[] args) {
    // TODO Auto-generated method stub
    People oPeople = People.getPrototype();

    System.out.println("Edad "+oPeople.getAge()+ " Nombre"+oPeople.getName());
   
    People oPeople2 = People.getPrototype();

    oPeople2.setName("Victor Aravena");
    System.out.println("Edad "+oPeople2.getAge()+ " Nombre "+oPeople2.getName());
     

    System.out.println("Edad "+oPeople.getAge()+ " Nombre"+oPeople.getName());

  }

}
TOP

Related Classes of prototype.MainPrototype

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.