Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Beschreiben Sie hier die Klasse Film.
- *
- * @author Ralf Sagorny
- * @version (eine Versionsnummer oder ein Datum)
- */
- public class Film
- {
- String titel;
- String genre;
- String bewertung;
- /**
- * Konstruktor
- */
- public Film(String filmtitel, String fgenre, String fbewertung) {
- titel = filmtitel;
- genre = fgenre;
- bewertung = fbewertung;
- }
- /**
- * Filminformation als Zeile ausgeben
- */
- public String getInfo() {
- return "Titel:"+titel+" Genre:"+genre+" Bewertung:"+bewertung;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement