The homework is:
"1.Write MyClassToBePersisted.java, which contains the following
properties
-Profile field, which has the following fields
--String name
--int age
--String hobby
-School field, which has the following fields
--String nameOfSchool
--int yearStarted (this is transient field)
-Write SerializeMyClassToBePersisted.java which creates an instance of
MyClassToBePersisted class and serialize it into a file in its main
method.
-Write DeserializeMyClassToBePersisted.java which read the serialized
file and deserialize it into instance of MyClassToBePersisted class in
its main method.
2. Write MyClassToBePersisted.java, which contains the following
properties with version control."

For step 1:
Profile and School are classes right? If so, was it intended that they
be inner classes?
Why does it ask to create 2 classes with the main() method?

For step 2:
Where are the "following" properties? Does it mean the properties from
step 1, except you have a final static variable that keeps track of
the identification number?

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to