Forums
Learn
Careers
Store
About
SUBSCRIBE
WWDC23 SALE: Save 50% on all my Swift books and bundles! >>
Question 1/12: This code will print some sort of output – true or false?
Hint: Subclasses must use override to change methods from their parents. Click to show.
override
class Appliance { func start() { print("Starting...") } } class Oven: Appliance { } let oven = Oven() oven.start()
Correct! This code will print "Starting..."
Oops – that's not correct. This code will print "Starting..."
Return to Review Menu
You are not logged in
Link copied to your pasteboard.