✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Aufgabe: Die Universität bietet Vorlesungen an. Jede Vorlesung hat einen Titel und wird von einem Professor gehalten. Erstellen Sie die Klasse Vorlesung.class, kapseln Sie dabei die Attribute titel und prof. Diese Attribute sollten lediglich via der Methoden getTitel() und getProfessor() zugänglich sein.
public class Vorlesung { prof; String titel; public Vorlesung(String titel, professor) { .titel=titel; .prof=professor; } public getProfessor() { return prof; } public getTitel() { return titel; }}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!