Mundo - pancho = new Empleado("Pancho", 340,...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.io.*; i public class Mundo{ p public static Persona pepe; public static Estudiante jorge; public static Empleado pancho; p public static void main(String args[]){ p pepe = new Persona("Pepe", 18, 1.84); jorge = new Estudiante("Jorge", 17, 1.67, 635637, 87, 90, 100);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: pancho = new Empleado("Pancho", 340, 1.82, 145033); p System.out.println(pepe.toString()); System.out.println(jorge.toString()); System.out.println(pancho.toString()); S } }...
View Full Document

This note was uploaded on 10/29/2009 for the course ITC TC-1002 taught by Professor X during the Spring '09 term at ITESM.

Ask a homework question - tutors are online