2.?.? (Object Oriented Programming) Flashcards
1
Q
What is an object?
A
- A repeatable piece of code with attributes and methods
2
Q
What is a class
A
- A template used to create objects
3
Q
What is an instance?
A
- An object created from a class
4
Q
Why use objects?
A
- Different team members can work on different areas
- Create multiple instances of the same class
5
Q
What is an attribute?
A
- A value belonging to an instance
6
Q
What is a method?
A
- A subroutine belonging to an instance
7
Q
What is inheritance?
A
- One class taking attributes and methods from another
8
Q
What is a superclass?
A
- A class that is inherited by another
9
Q
What is a subclass?
A
- A class that inherits from another
10
Q
A