Class b + class usa

Clasified in Notes of Other subjects of Other Classes.

Written at June 21, 2009 on enEnglish with a size of 731 bytes.

class C extends B
{ private int c;
C(int a2, int b2, int c2)
{ super(a2,b2);
c = c2;}
int getC()
{return c;}
void stC(int c1)
{c = c1;}
int Multiplicar()
{ return super.multiplicar() * c;}
{ return super. toString() + " c = " + c;}
}

class Usa
{ static void main()
{ A a1 ; B b1; C c1;
Scanner leer = new Scanner(System.in)
int valor;
System.out.println("ingrese entero")
valor = leer.next();
a1 = new A (valor);
b1 = new B(*(int)(Math.random()*10);(int)(Math.random() * 10);
c1 = new C(a1.getA(), b1.getB(), b1.getA());
}
Tags:class,usa,b,int,new,c
This document has been visited 5 times and has received 1 votes
© Wikiteka, 2010
Chuletas  |  Apuntes