Objects are also known as:
Classes.
Subclasses.
Instances.
The code specified in a method within a class:
Cannot access the properties specified in the class.
Can access the properties specified in the class.
Cannot interact with other members of the class.
A subclass:
Inherits all members from its superclass.
Inherits only methods from its superclass.
Inherits only properties from its superclass.
The variables defined in a class to encapsulate data for each instance of the class in Swift are known as:
Subclasses.
Properties.
Methods.
The functions defined in a class to encapsulate behavior for each instance of the class are known as:
Subclasses.
Properties.
Methods.
You're reading from Object???Oriented Programming with Swift 2
You have been reading a chapter from
Object???Oriented Programming with Swift 2Published in: Jan 2016Publisher: ISBN-13: 9781785885693
© 2016 Packt Publishing Limited All Rights Reserved
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime