Advertisement
Joaquin_Hidalgo

Auto

Oct 10th, 2024
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. package punto2;
  2.  
  3. public class Auto {
  4.  
  5.     private char direccion;
  6.     private int c1;
  7.     private int c2;
  8.  
  9.     public Auto(char direccion, int c1, int c2) {
  10.         this.direccion = direccion;
  11.         this.c1 = c1;
  12.         this.c2 = c2;
  13.     }
  14.  
  15.     public char getDireccion() {
  16.         return direccion;
  17.     }
  18.  
  19.     public int getC1() {
  20.         return c1;
  21.     }
  22.  
  23.     public int getC2() {
  24.         return c2;
  25.     }
  26.  
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement