Java Reference
In-Depth Information
Java Documentation (continued)
* @author Rich Raposa
* @version 1.2
*/
public class Television
{
/**
* The channel field represents the current channel
* being watched.
*/
public int channel;
/**
* This field is private and by default will not
* appear on the documentation page.
*/
private int volume;
/**
* Constructs a Television object with a channel of
* 4 and a volume 5.
*/
public Television()
{
this(4,5);
System.out.println(“Inside Television()”);
}
/**
* Constructs a Television object with a channel c
* and volume v.
* @param c The initial channel.
* @param v The initial volume.
*/
public Television(int c, int v)
Search WWH ::




Custom Search