2.?.? (Object Oriented Programming) Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is an object?

A
  • A repeatable piece of code with attributes and methods
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a class

A
  • A template used to create objects
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an instance?

A
  • An object created from a class
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why use objects?

A
  • Different team members can work on different areas
  • Create multiple instances of the same class
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an attribute?

A
  • A value belonging to an instance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a method?

A
  • A subroutine belonging to an instance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is inheritance?

A
  • One class taking attributes and methods from another
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a superclass?

A
  • A class that is inherited by another
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a subclass?

A
  • A class that inherits from another
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly