Question: Using the provided TV class write the single line of code to create a new instance of the TV class using the no-arg constructor
Using the provided TV class write the single line of code to create a new instance of the TV class using the no-arg constructor and assign it to a reference variable - you choose the variable name public class TV { int channel; int volume Level; boolean on;; public TV () { channel= 1; } volume Level = 1; on= false; public TV (int chan, int vol) { channel = chan; volume Level = vol; on = true;
Step by Step Solution
3.37 Rating (166 Votes )
There are 3 Steps involved in it
Assuming theres a small typo in the provided code correcting volume Level ... View full answer
Get step-by-step solutions from verified subject matter experts
