Constructors
AP Computer Science A · Flashcards · Application
AP COMPUTER SCIENCE A · FLASHCARDS
Card 1
of 7
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
Identify the issue: class J { J(int k) {} J(double k) {} }
QUESTION
Find the issue: class F { F() { super(); } }
QUESTION
Find the issue: class C { C(int x) { this.x = x; } }
Tap to flip before you grade
ANSWER
No default constructor; must provide 'x'. Default constructor is removed when parameterized constructor exists.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card