Forums
Learn
Careers
Store
About
SUBSCRIBE
TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>
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.