Advertisement
ADL_Rodrigo_Silva

Untitled

Dec 16th, 2021
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1. package cl.boti;
  2.  
  3. public class Cerveza {
  4.    
  5.     private int precio;
  6.     private Botella botella;
  7.    
  8.     public Cerveza(int precio) {
  9.         this.precio = precio;
  10.     }
  11.    
  12.     public Cerveza() {
  13.        
  14.     }
  15.  
  16.     public int getPrecio() {
  17.         return precio;
  18.     }
  19.  
  20.     public void setPrecio(int precio) {
  21.         this.precio = precio;
  22.     }
  23.    
  24.    
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement