package Practica8 package Practica8; public class public class Biblioteca Biblioteca { private private String String cod, titulo; private private int int año año; public public Biblioteca Biblioteca(String cod, String titulo, int int año año) { this this..cod = cod; this. this = titulo this this...titulo ; ; año = año }
public public String String getCod() { return cod; } public public void setCod void setCod(String cod) { this this..cod = cod; } public public String String getTitulo() { return titulo; } public public void setTitulo void setTitulo(String titulo) { this..titulo = titulo; this } public public int getAño int getAño() { return año; } public public void setAño void setAño(int int año año) { this this..año = año; } } ---------------------------------------------------------------------------------------------------------- public class public class Libro Libro extends Biblioteca { private private String String autor , editorial; public public Libro Libro(String cod, String titulo, String autor , String editorial, int año int año) { super((cod, titulo, año); super this..autor = autor ; this this this..editorial = editorial; } () { public public String String getAutor () return autor ; }
public public void setAutor void setAutor (String autor ) { this this..autor = autor ; }
public String String getEditorial () { public return editorial; } public public void setEditorial void setEditorial(String editorial) { this this..editorial = editorial; } String getTodo(){ this..autor +"\t"+this this..editorial+"\t"+getAño()+"\n"; } return getCod()+"\t"+getTitulo()+"\t"+this } ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
public class public class Tesis Tesis extends Biblioteca { private private String String autor , tutor ; Tesis(String cod, String titulo, String autor , String tutor , int año int año) { super((cod, titulo, año); super this..autor = autor ; this this this..tutor = tutor ; } public public String String getAutor () () { return autor ; } public public void setAutor void setAutor (String autor ) { this this..autor = autor ; } public public String String getTutor () () { return tutor ; } }
public public void setTutor void setTutor (String tutor ) { this this..tutor = tutor ; } String getTodo(){ this..autor +"\t"+this this..tutor +"\t"+getAño()+"\n"; return getCod()+"\t"+getTitulo()+"\t"+this }
public class public class Revista Revista extends Biblioteca { private private String String editorial; public public Revista Revista(String cod, String titulo,String editorial, int año int año) { super super((cod, titulo, año); this this..editorial = editorial; } public public String String getEditorial () { return editorial; }
public public void setEditorial void setEditorial(String editorial) { this this..editorial = editorial; } String getTodo(){ return getCod()+"\t"+getTitulo()+"\t"+this this..editorial+"\t"+getAño()+"\n"; } }
Thank you for interesting in our services. We are a non-profit group that run this website to share documents. We need your help to maintenance this website.