Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Java by as ( 15 years ago )
0 abstract class Medium {
1
2 String titel;
3
4 Medium(String titel) {
5 this.titel = titel;
6 }
7
8 abstract void ausgeben();
9 }
0 class Buch extends Medium {
1
2 String autor;
3
4 Buch(String titel, String autor) {
5 super(titel);
6 this.autor = autor;
7 }
8
9 void ausgeben() {
10 System.out.println("Buchtitel : " + titel);
11 System.out.println("Autor : " + autor);
12 }
13 }

 

Revise this Paste

Your Name: Code Language: