Advertisement
Re_21

Poo Vehiculos

May 30th, 2023
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.54 KB | None | 0 0
  1. /*
  2.  * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
  3.  * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
  4.  */
  5. package com.mycompany.proyecto_final;
  6.  
  7. /**
  8.  *
  9.  * @author victo
  10.  */
  11. public class vehiculos {
  12.     //numero de placa
  13.     private String nPlaca;
  14.     //marca de vehiculo
  15.     private String mVehiculo;
  16.     //linea de vehiculo
  17.     private String lVehiculo;
  18.     //modelo del vehiculo
  19.     private String modVehiculo;
  20.     //color del vehiculo
  21.     private String cVehiculo;
  22.     private String nCliente;
  23.     private String estadoVehiculo ="1";
  24.  
  25.     public vehiculos(String nPlaca, String mVehiculo, String lVehiculo, String modVehiculo, String cVehiculo, String nCliente, String estadoVehiculo) {
  26.         this.nPlaca = nPlaca;
  27.         this.mVehiculo = mVehiculo;
  28.         this.lVehiculo = lVehiculo;
  29.         this.modVehiculo = modVehiculo;
  30.         this.cVehiculo = cVehiculo;
  31.         this.nCliente = nCliente;
  32.         this.estadoVehiculo = estadoVehiculo;
  33.     }
  34.  
  35.     public String getnPlaca() {
  36.         return nPlaca;
  37.     }
  38.  
  39.     public void setnPlaca(String nPlaca) {
  40.         this.nPlaca = nPlaca;
  41.     }
  42.  
  43.     public String getmVehiculo() {
  44.         return mVehiculo;
  45.     }
  46.  
  47.     public void setmVehiculo(String mVehiculo) {
  48.         this.mVehiculo = mVehiculo;
  49.     }
  50.  
  51.     public String getlVehiculo() {
  52.         return lVehiculo;
  53.     }
  54.  
  55.     public void setlVehiculo(String lVehiculo) {
  56.         this.lVehiculo = lVehiculo;
  57.     }
  58.  
  59.     public String getModVehiculo() {
  60.         return modVehiculo;
  61.     }
  62.  
  63.     public void setModVehiculo(String modVehiculo) {
  64.         this.modVehiculo = modVehiculo;
  65.     }
  66.  
  67.     public String getcVehiculo() {
  68.         return cVehiculo;
  69.     }
  70.  
  71.     public void setcVehiculo(String cVehiculo) {
  72.         this.cVehiculo = cVehiculo;
  73.     }
  74.  
  75.     public String getnCliente() {
  76.         return nCliente;
  77.     }
  78.  
  79.     public void setnCliente(String nCliente) {
  80.         this.nCliente = nCliente;
  81.     }
  82.  
  83.     public String getEstadoVehiculo() {
  84.         return estadoVehiculo;
  85.     }
  86.  
  87.     public void setEstadoVehiculo(String estadoVehiculo) {
  88.         this.estadoVehiculo = estadoVehiculo;
  89.     }
  90.  
  91.     @Override
  92.     public String toString() {
  93.         return "vehiculos{" + "nPlaca=" + nPlaca + ", mVehiculo=" + mVehiculo + ", lVehiculo=" + lVehiculo + ", modVehiculo=" + modVehiculo + ", cVehiculo=" + cVehiculo + ", nCliente=" + nCliente + ", estadoVehiculo=" + estadoVehiculo + '}';
  94.     }
  95.    
  96.    
  97.    
  98.    
  99. }
  100.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement