A typical class has its constructor declared
- Acheck_circle
public (so external code can construct objects)
- B
private (always)
- C
protected
- D
static
Explanation
Public constructor enables instantiation outside the class.
AP Computer Science A· difficulty 3/5
A typical class has its constructor declared
public (so external code can construct objects)
private (always)
protected
static
Explanation
Public constructor enables instantiation outside the class.
Want 10 more like this — adaptive to your weak spots?