Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Bizcocho {
- private int numBizcocho;
- private String tipoBizcocho;
- private String nombre;
- public Bizcocho(int numBizcocho, String tipoBizcocho) {
- this.numBizcocho=numBizcocho;
- this.tipoBizcocho=tipoBizcocho;
- this.nombre="Bizcocho";
- }
- public int getNumBizcocho() {
- return this.numBizcocho;
- }
- public String getTipoBizcocho() {
- return this.tipoBizcocho;
- }
- public String getnombre() {
- return this.nombre;
- }
- }
- public class Factura {
- private int numFactura;
- private String tipoFactura;
- private String nombre;
- public Factura(int numFactura,String tipoFactura) {
- this.numFactura=numFactura;
- this.tipoFactura=tipoFactura;
- this.nombre="Bizcocho";
- }
- public int getNumFactura() {
- return this.numFactura;
- }
- public String getTipoFactura() {
- return this.tipoFactura;
- }
- public String getnombre() {
- return this.nombre;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment