Programming and Problem Solving with Java

(やまだぃちぅ) #1

372



  1. a. Write the statement that declares a variable outFile, instantiates an object
    of the class ObjectOutputStreamand assigns its address to outFile.
    b.Write the statement that writes myName, an instance of the class Name,on
    outFile.
    c. Write the statement that declares a variable inFile, instantiates an object of
    class ObjectInputStream, and assigns its address to inFile.
    d.Write the statement that reads myName, an instance of the class Namefrom
    inFile.


Programming Problem


1.Take the CRC cards used to design the Address hierarchy and complete the de-
sign and implementation of a package that contains the five classes. Design
and implement a test plan for the package.
Free download pdf