Forums
Learn
Careers
Store
About
SUBSCRIBE
NEW: My new book Pro SwiftUI is out now – level up your SwiftUI skills today! >>
Question 1/12: This code defines two valid classes using inheritance – true or false?
Hint: Classes can inherit only from non-final classes. Click to show.
final class Landmark { } final class Monument: Landmark { }
Correct! This attempts to inherit from a final class, which is not allowed.
Oops – that's not correct. This attempts to inherit from a final class, which is not allowed.
Return to Review Menu
You are not logged in
Link copied to your pasteboard.