Advertisement
Sago

Film.java

Jan 23rd, 2014
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.57 KB | None | 0 0
  1. /**
  2.  * Beschreiben Sie hier die Klasse Film.
  3.  *
  4.  * @author Ralf Sagorny
  5.  * @version (eine Versionsnummer oder ein Datum)
  6.  */
  7. public class Film
  8. {
  9.    String titel;
  10.    String genre;
  11.    String bewertung;
  12.    
  13.    /**
  14.     * Konstruktor
  15.     */
  16.    public Film(String filmtitel, String fgenre, String fbewertung) {
  17.        titel = filmtitel;
  18.        genre = fgenre;
  19.        bewertung = fbewertung;
  20.    }
  21.    
  22.    /**
  23.     * Filminformation als Zeile ausgeben
  24.     */
  25.    public String getInfo() {
  26.       return "Titel:"+titel+" Genre:"+genre+" Bewertung:"+bewertung;
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement