Engineering
Engineering, 08.11.2019 19:31, krystalScott17

Iused this program (nogo. java) for one of my cs2 java lab exercises. there are number of steps that you need to do along the way to collect points. the given nogo class has two abstract classes (nogo1, nogo2) and an empty static main() method. nogo. java has no compile error, and you can run nogo. java without runtime error. it does not display any messages. your task is to add codes along the following steps:
1) create instance variables for the two classes (nogo1, nogo2) and explain the outcome.
2) create a subclass gol with nogo1 as its parent and create a constructor that prints the "go1 ()" message
3) create an instance of go1 in run it, explain the outcome
4) in the nogo2 class, add an abstract method.
5) create a new class go9 that extends the nogo2 class and write a method that overrides the method that you created in step 4.
this new method displays "get x out of abstraction" where x is the method name. the constructor for g09( ) displays "g09( ". 6) in the main() method, add some codes to invoke the method x.
your final display should be:
nogo1()
go1()
goo()
get me()
out of abstraction
** me() is my method. yours should be different.

answer
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, caitlynnpatton1208
Water in a partially filled large tank is to be supplied to the roof top, which is 8 m above the water level in the tank, through a 2.2-cm-internal-diameter pipe by maintaining a constant air pressure of 300 kpa (gage) in the tank. if the head loss in the piping is 2 m of water, determine the discharge rate of the supply of water to the roof top in liters per second.
Answers: 3
image
Engineering, 04.07.2019 18:10, samanthabutryn
Which one from below is not one of the reasons of planning failures? (clo3) a)-planner is careless. b-planner spend less time in the field but more time on the desk c)-planner is not qualified d)-planner does not have sufficient time to properly plan
Answers: 3
image
Engineering, 04.07.2019 18:20, sarah7984
Vibration monitoring this technique uses the noise or vibration created by mechanical equipment and in seme cases by plant systems to detemine their actual condtion. a)- true b)- false
Answers: 2
image
Engineering, 04.07.2019 19:20, jimena15
The quality is zero at a)-the saturated vapour state b)-the saturated liquid state c)-the saturated liquid-vapour mixture state d)-none of the states in the other answers
Answers: 3
Do you know the correct answer?
Iused this program (nogo. java) for one of my cs2 java lab exercises. there are number of steps that...

Questions in other subjects: