Forums
Learn
Careers
Store
About
SUBSCRIBE
UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>
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.