FileDocCategorySizeDatePackage
Triangle.javaAPI DocExample530Tue Feb 12 13:32:04 GMT 2002myprojects.Interface

Triangle

public class Triangle extends Shape

Fields Summary
private int
adj
private int
opp
Constructors Summary
public Triangle(int adj, int opp)

		this.adj=adj;
		this.opp=opp;
		System.out.println("in constructor for triangle"+adj+opp);
		
	
Methods Summary
public voidpaint(java.awt.Graphics g)

		g.drawLine(100,100,100+adj,100);
		g.drawLine(100+adj,100,100+adj,100+opp);
		g.drawLine(100+adj,100+opp,100,100);
		System.out.println("In paint");
	
public voidprint()

		System.out.println("in triangle");