Record your participation in Piazza clicker question Lesson24 Q1
Think about the Product and Toy classes from last lesson. Toy is a subclass of Product. product and littlePeople are defined as:
Product product = new Product(....); Toy littlePeople = Toy(....);Which of the following calls are legal? (May be multiple answers)
Record your participation in Piazza clicker question Lesson24 Q2
Product myProduct = rocket;
Product watch = new Product("Apple Watch", 300.00);
Record your participation in Piazza clicker question Lesson24 Q3
If we add this code to the ToyTester,
Product thing = rocket; System.out.println(thing.getAppropriateAge());
will it compile?
Record your participation in Piazza clicker question Lesson24 Q4
Which of the following method calls are valid, given the declarations in ToyTester. Check all that are valid
Record your participation in Piazza clicker question Lesson24 Q5
You have a Product object reference, thing. thing actually references a Toy object (rocket). You want to know the appropriate age. How can you get it?