Answer is ADE.
To test, uncomment each option separately.
public class CheckingAccount {
public int amount;
/* line n1 - Option A
public CheckingAccount() { // Constructor
amount = 100;
}
*/
/* line n1 - Option D
public CheckingAccount() { // Constructor
this.amount = 100;
}
*/
public static void main(String[] args) {
CheckingAccount acct = new CheckingAccount();
/* line n2 - Option E */
//acct.amount = 100;
System.out.println(acct.amount);
} // fim da classe main
}// fim da classe CheckingAccount
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
MPignaProTech
3 months agonamaoo
1 year, 4 months agoIbrahimAlnutayfi
1 year, 6 months agoakbiyik
2 years, 1 month agocarloswork
2 years, 2 months agoiSnover
2 years, 3 months agoshivkumarx
2 years, 3 months ago