1.
Q19: Fill in Blank A.
- String
- int
- double
- void
- return
static
vs. instance/object-level variablesstatic
vs. instance/object behaviors/methodsstatic
as neededpublic class SongType {
//attributes declared here
//...
//getters/accessors
public ___A___ getTitle () {
___B___ ___C___;
}
___D___ String ___E___ () {
___F___ artist;
}
public ___G___ getLength () {
___H___ ___I___;
}
//setters/mutators
public ___J___ setTitle (String n) {
title = ___K___;
}
___L___ void setArtist (___M___ n) {
artist = ___N___;
}
public ___O___ setLength (___P___ n) {
if (n > 0)
___Q___ = n;
}
}