package Wednesday; public class ValidInvalid { public static void main(String[] args) { /* The following three declarations are correct */ TV tv1 = new ConventionalTV(); TV tv2 = new HighDefTV(); HighDefTV high1 = new HighDefTV(); /* Which of the following statements are valid? */ /* Notice that some of these statements may not compile */ /* HighDefTV high2 = new ConventionalTV(); HighDefTV high3 = new TV(); ConventionalTV conv1 = new ConventionalTV(); System.out.println(conv1.super.toString()); HighDefTV high4 = (HighDefTV)tv2; ConventionalTV conv2 = (ConventionalTV)tv2; TV tv3 = new TV(); TV tv4 = high1; tv4.getDigitalConverter(); tv4.changeChannel(4); tv4.toString(50); tv4.processAndDisplaySignal(); */ } }