Exercises

   

Java™ 2 Primer Plus
By Steven Haines, Steve Potts

Table of Contents
Chapter 6.  Classes


1:

In the chapter we modeled a car and created a CarObject class. Create a Dog class and a Cat class; be sure to include functionality such as eating and speaking.

2:

Create a class named Calculator with a static inner class named Math that provides methods such as add, subtract, multiply, divide, and modulus.


       
    Top
     



    Java 2 Primer Plus
    Java 2 Primer Plus
    ISBN: 0672324156
    EAN: 2147483647
    Year: 2001
    Pages: 332

    Similar book on Amazon

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net