Name ____________________________

 

                                                Lab 14 : Experimenting with Abstract Classes

 

3.6 What error was generated?

 

 

 

 

 

3.8.  Why does this class compile even though it has a method with a missing method body?

 

 

 

 

 

3.11. What error was generated?

 

 

 

 

 

3.15. What error was generated and why?

 

 

 

 

 

3.16. Why doesn't the declaration of the measure variable generate a compile-time error?

 

 

 

 

   

 

4.2.  Is this class "concrete"?  Why or why not?

 

 

 

 

4.5.  What output was generated?

 

 

 

 

 

 

4.6.  Is this output correct?

 

 

 

 

 

4.9.  What error was generated?

 

 

 

 

 

4.12. What code did you have in your implementation?       [Copy and paste your code here.]

 

 

 

 

 

5.3.  Why doesn't the expression myLength.equals(myWeight) generate a compile-time error?

 

 

 

 

 

 

5.5.  What output is generated?

 

 

 

 

 

5.6.  Why does the weight equal the length in the example above?

      (Note: We will see how this "problem" can be fixed later in the semester.)

 

 

 

 

 

6.3.  Did it execute correctly?

 

 

 

 

 

6.6.  Why didn't it compile?

 

 

 

 

 

6.10. What error was generated?

 

 

 

 

 

6.12. What changes did you make? [Copy and paste your code here.]