Swift - innere Klasse

Wie erstellte ich in Swift einer innere Klasse?

class Aussen { var name = "Hallo Welt";

class Innen{
var innenAttribut = "geheim"

init(aussen: Master) {
let example = master.test;
}
}

func aussenMethode() {
let attr = Innen(aussen: self)
}
}

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare