subject

Question 4 what is the output of following program: public class test { public static void main(string[] args) { a a = new a(); a. methodb(); } } class a { public a() { system. out. println("a's constructor is executed"); } public void methoda() { system. out. println("methoda is executed"); } public void methodab() { system. out. println("a's methodab is executed"); } } class b extends a { private int num = 0; public b() { super(); system. out. println("b's constructor is executed"); } public b (int n) { num = n; system. out. println("b's constructor is executed"); } public void methodb() { system. out. println("num is " + num); system. out. println("methodb is executed"); } public void methodab() { system. out. println("b's methodab is executed"); } }

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:30
You have a small company and want to keep your costs low, but it is important your employees share data. which network would provide you with the most economical solution?
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
For the following example of making a peanut butter and jelly sandwich, identify which are inputs, processes, or outputs: bread scooping and spreading peanut butter plate scooping and spreading jelly finished sandwich putting two pieces of covered bread together dirty plate crumbs
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
Guys do you know sh27 cause he hacked me : ( pidgegunderson my old user
Answers: 2
question
Computers and Technology, 24.06.2019 10:00
(, urgent need): how do i change my username
Answers: 1
You know the right answer?
Question 4 what is the output of following program: public class test { public static void main(str...
Questions
question
Mathematics, 11.01.2021 06:20
question
Mathematics, 11.01.2021 06:20
question
Mathematics, 11.01.2021 06:20
question
Chemistry, 11.01.2021 06:20
Questions on the website: 13722363