Demo entry 6780520

lknkkln

   

Submitted by klnnkl on Dec 27, 2018 at 00:35
Language: Java. Code size: 488 Bytes.

public class Constantes
{

	public static void main(String[] args)
	{
		Empleados empleado1 = new Empleados("Jesus", 1);
		Empleados empleado2 = new Empleados("Maria", 2);
		
		System.out.println(empleado1.devuelveDatos());
		System.out.println(empleado2.devuelveDatos());
		
		System.out.println("Cambiando el nombre y seccion de Jesus");
		empleado1.cambiaSeccion("Finanzas");
		empleado1.cambiaNombre("Joselito");
		System.out.println(empleado1.devuelveDatos());
	}
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).