Podcast
Questions and Answers
What is a common feature of objects in OOP?
What is a common feature of objects in OOP?
- Methods attached to them can access and modify data fields (correct)
- Objects can only contain data and not code
- Objects are instances of classes
- Objects are designed by making them out of other objects
What is the special name used to refer to the current object in OOP?
What is the special name used to refer to the current object in OOP?
- this or self (correct)
- myObject
- currentObj
- objRef
What do class-based OOP languages use to determine the types of objects?
What do class-based OOP languages use to determine the types of objects?
- Classes (correct)
- Methods
- Interfaces
- Objects
What does OOP stand for?
What does OOP stand for?
What are the two main components that objects can contain in OOP?
What are the two main components that objects can contain in OOP?