Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Vecteur {
- private int x,y;
- public void afficher(){
- System.out.println("abscisse:" + x +"\nordonné:" y);
- }
- public int Produitscalaire(int x1,y1){
- return x*y1 - y*x1;
- }
- public Vecteur(a){
- x=a;
- y=a;
- }
- public Vecteur(a,b){
- x=a;
- y=b;
- }
- public void finalize() throws Throwable{
- System.out.println("Object is destroyed by the Garbage Collector");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement