上QQ阅读APP看书,第一时间看更新
Test your knowledge
- 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.