Alejandro_S_Mercado

Untitled

Sep 24th, 2025
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.88 KB | None | 0 0
  1. public class Bizcocho {
  2.     private int numBizcocho;
  3.     private String tipoBizcocho;
  4.     private String nombre;
  5.  
  6. public Bizcocho(int numBizcocho, String tipoBizcocho) {
  7.     this.numBizcocho=numBizcocho;
  8.     this.tipoBizcocho=tipoBizcocho;
  9.     this.nombre="Bizcocho";
  10. }
  11.  
  12. public int getNumBizcocho() {
  13.     return this.numBizcocho;
  14. }
  15.  
  16. public String getTipoBizcocho() {
  17.     return this.tipoBizcocho;
  18. }
  19.  
  20. public String getnombre() {
  21.     return this.nombre;
  22. }
  23.  
  24.  
  25. }
  26.  
  27. public class Factura {
  28.     private int numFactura;
  29.     private String tipoFactura;
  30.     private String nombre;
  31.    
  32. public Factura(int numFactura,String tipoFactura) {
  33.     this.numFactura=numFactura;
  34.     this.tipoFactura=tipoFactura;
  35.     this.nombre="Bizcocho";
  36. }
  37.  
  38. public int getNumFactura() {
  39.     return this.numFactura;
  40. }
  41.  
  42. public String getTipoFactura() {
  43.     return this.tipoFactura;
  44. }
  45.  
  46. public String getnombre() {
  47.     return this.nombre;
  48. }
  49.  
  50. }
  51.  
Advertisement
Add Comment
Please, Sign In to add comment