Enteros - x = n1;} x public void setY(double n2){ y = n2;}...

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

View Full Document Right Arrow Icon
public class Enteros{ p public double x; public double y; public double z; p public Enteros(){ x=0; y=0; z=0;} z public Enteros(double n1, double n2, double n3){ x=n1; y=n2; z=n3;} z public double getX(){ return x;} r public double getY(){ return y;} r public double getZ(){ return z;} r public void setX(double n1){
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: x = n1;} x public void setY(double n2){ y = n2;} y public void setZ(double n3){ z = n3;} z public double op1(){ return x / z;} r public double op2(){ return x % y;} r public double op3(){ return x / y - z;} r public double op4(){ return x / (y - z);} r }...
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