/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Capitulo_2;

/**
 *
 * @author felix
 */
public class Entero {
    private int valor;
    
    // Metodo Constructor
    
    public Entero(int val) {
        valor = val;
    }
   
    void imprime() {
        System.out.println(valor);
    }
    
    int getValue() {
        return valor;
    }
    
    void setValue(int a) {
        valor = a;
    }
    
    @Override
    public String toString() {
        
        return("El valor almacenado es = " + valor);
        
    }
    
}
