subject

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: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:50
Free points just awnser this. what should i watch on netflix
Answers: 2
question
Computers and Technology, 23.06.2019 05:00
Which best explains why a digital leader would join a society specializing in technology
Answers: 1
question
Computers and Technology, 23.06.2019 05:30
Sally is editing her science report about living things. she needs to copy a paragraph from her original report. order the steps sally needs to do to copy the text to her new document.
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. a company wants to use online methods to target more customers. it decides to conduct a market research by collecting the data of a few customers with their consent. they want to track data of the sites that their customers frequently visit. which software can the company? a. spyware b. bots c. adware d. trojan horse e. rootkits
Answers: 1
You know the right answer?
What is the output of following program: public class test { public static void main(string[] args)...
Questions
question
Mathematics, 28.01.2021 03:50
question
Mathematics, 28.01.2021 03:50
question
Mathematics, 28.01.2021 03:50
question
Health, 28.01.2021 03:50
question
Mathematics, 28.01.2021 03:50
Questions on the website: 13722363