#8 abstract classes + error-handling + exceptions Flashcards

(7 cards)

1
Q

how is an abstract method similar to an interface

A

it has a method signature (which includes abstract modifier) but no body

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

where are abstract methods implemented

A

in its subclasses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what makes a class abstract

A

> it has the abstract modifier in the heading
it has at least one abstract method
it can’t instantiate objects (its subclasses can)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

compile-time (syntax) errors

A

errors in code construction

underlined in red

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

runtime errors

A

operations that are illegal or impossible to execute

exceptions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

logic errors

A

a problem with the design or algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

test coverage (code coverage)

A

how much code is executed by a set of test cases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly