Methods: How to Write Them
AP Computer Science A · Flashcards · Recall
AP COMPUTER SCIENCE A · FLASHCARDS
Card 1
of 28
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
How do you indicate that a method can throw an exception?
QUESTION
What is the purpose of a method signature?
QUESTION
What is the purpose of a constructor?
Tap to flip before you grade
ANSWER
To initialize a new object of a class. Special method called when creating new class instances.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card