This is a Java question. For it, we will assume the following: Class TelevisionC
ID: 3738203 • Letter: T
Question
This is a Java question. For it, we will assume the following: Class TelevisionChannel has three fields: name, a String; number, an integer; and Boolean, which represents whether the channel is a cable channel. Code a default constructor for that class: initialize the fields to an empty string, 0, and false, respectively. This is a Java question. For it, we will assume the following: Class TelevisionChannel has three fields: name, a String; number, an integer; and Boolean, which represents whether the channel is a cable channel. Code a default constructor for that class: initialize the fields to an empty string, 0, and false, respectively.Explanation / Answer
//TelevisionChannel.java public class TelevisionChannel { String name; int number; boolean cable; public TelevisionChannel() { name = ""; number = 0; cable = false; } }