subject

Analyze the following code: public class test {public static void main(string[] args) {new b(); }}class a {int i = 7; public a() {seti(20); system. out. println("i from a is " + i); }public void seti(int i) {this. i = 2 * i; }}class b extends a {public b() {// system. out. println("i from b is " + i); }public void seti(int i) {this. i = 3 * i; }}a) the constructor of class a is not called. b) the constructor of class a is called and it displays "i from a is 60".c) the constructor of class a is called and it displays "i from a is 40".d) the constructor of class a is called and it displays "i from a is 7".

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:20
The north and south regions had very diferent economies in the 1800s.
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
Which option correctly describes a dbms application? a. software used to manage databases b. software used to organize files and folders c. software used to develop specialized images d. software used to create effective presentations
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
Which option allows you to view slides on the full computer screen?
Answers: 1
question
Computers and Technology, 23.06.2019 15:20
What does a bonus object do? a. subtracts lives b. keeps track of a player's health c. gives a player an advantage d. makes text appear
Answers: 1
You know the right answer?
Analyze the following code: public class test {public static void main(string[] args) {new b(); }}cl...
Questions
question
Mathematics, 10.04.2020 20:10
question
Mathematics, 10.04.2020 20:10
question
Mathematics, 10.04.2020 20:10
Questions on the website: 13722367