/*
* 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 productos;
import java.util.Scanner;
/**
*
* @author JUANCHO
*/
public class Refrigerados extends Productos{
private String fechaEnvasado, codSupervision;
private int temp;
public String getFechaEnvasado()
{
return fechaEnvasado;
}
public void setFechaEnvasado(String fechaEnvasado)
{
this.fechaEnvasado = fechaEnvasado;
}
public String getCodSupervision()
{
return codSupervision;
}
public void setCodSupervision(String codSupervision)
{
this.codSupervision = codSupervision;
}
public int getTemp()
{
return temp;
}
public void setTemp(int temp)
{
this.temp = temp;
}
public void leer()
{
Scanner entrada=new Scanner(System.in);
Scanner entrada2=new Scanner(System.in);
super.leerproducto();
System.out.println("fecha de Envasado:");
fechaEnvasado=entrada.nextLine();
System.out.println("código de supervisión:");
codSupervision=entrada.nextLine();
System.out.println("temperatura recomendada:");
temp=entrada2.nextInt();
}
public void imprimir()
{
System.out.println("\nFecha de envasado: "+this.getFechaEnvasado()+
"\nFecha de Caducidad: "+this.getCaducidad()+
"\nPaís de orígen: "+this.getPaisOrigen()+
"\nCódigo de Supervisión alimentaria:
"+this.getCodSupervision()+
"\nNúmero de lote: "+this.getNumlote()+
"\nTemperatura recomendada: "+this.getTemp());