37 lines
778 B
Java
37 lines
778 B
Java
|
/*
|
||
|
* To change this license header, choose License Headers in Project Properties.
|
||
|
* To change this template file, choose Tools | Templates
|
||
|
* and open the template in the editor.
|
||
|
*/
|
||
|
package figGeometrique;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @author therbron
|
||
|
*/
|
||
|
public class Main {
|
||
|
/*public static void main(String[] args) {
|
||
|
Point p1, p2, p3, p4;
|
||
|
Trait t1;
|
||
|
Carre c1;
|
||
|
Triangle tri1;
|
||
|
|
||
|
p1 = new Point();
|
||
|
p2 = new Point(1.0, 2.1);
|
||
|
p3 = new Point(p2);
|
||
|
|
||
|
t1 = new Trait(p1, p2, false, 5);
|
||
|
|
||
|
c1 = new Carre(20);
|
||
|
|
||
|
tri1 = new Triangle(10, 12, 14);
|
||
|
|
||
|
System.out.println(tri1);
|
||
|
|
||
|
t1.afficherLongueur();
|
||
|
c1.afficherAire();
|
||
|
tri1.afficherAire();
|
||
|
}*/
|
||
|
|
||
|
}
|