Week 3 Flashcards

1
Q

4th advantage of constructor overloading

A

A constructor eliminates calling the normal or ordinary method implicitly

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

3 Benefits of constructor chaining

ACE

A
  1. Avoids code duplication
  2. Consistent Usage
  3. Ease of maintenance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

For classes, what other situation is there where an import declaration is not required?

A

Not required if the class is referred to with a full qualified method name, including its package and class names.

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