6-class design Flashcards

1
Q

this vs this()

A

this: refers to instance of a class.
this(): refers to constructor call within the class

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

Class modifiers

A

final
abstract
sealed
non-sealed
static

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

Description of final

A

Class may not be extended

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