Hi
I am not sure what field within field means.  Can you help me with this?  
unclear if i put into constructor like this:

//constructor
public MyClassToBePersisted () {
        time = Calendar.getInstance().getTime();
        private Profile field (){
         String name = "Sang Shin"
          int age = 8
          String hobby = "Soccer"
          }//Profile end ***
    }//constructor end ***

Or I read here:
http://www.ibm.com/developerworks/webservices/library/ws-tip-visibility.html

So code like this?

    public array getProfile (){

    }//getProfile

public void setProfile (String setName, int setAge, String setHobby){
        this.name = setName;
        this.age = setAge;
        this.hobby = setHobby;
    }//setProfile

so I must return an array?
Or in this make hard code initialization.  Make it much easier?


--- On Thu, 9/24/09, walaa saad <[email protected]> wrote:

> From: walaa saad <[email protected]>
> Subject: Re: [java programming] lab 1043hw
> To: [email protected]
> Cc: [email protected]
> Date: Thursday, September 24, 2009, 3:52 AM
> Hi 
> 
> I think yes it is exercise 1 as the page link to exercise
> 1
> 
> also i think your assumption is write as all example in the
> lab initialize values in the constructed so no matter where
> these values are initialized , the homework is about
> serializing the values & deserialize them again
> 
> 
> 
> Thanks
> 
> He is The Prophet Mohammad http://www.islamway.com/mohammad/
> -- 
> Please accept my kind regards
> Sincerely yours
> Walaa Saad Mohammed Harmoush
> 
> 
> Blog:http://wardabamby.blogspot.com/
> 
> 
> 
> On Wed, Sep 23, 2009 at 7:12 PM,
> Zhao Lin <[email protected]>
> wrote:
> 
> 
> 
> 
> Hi
> 
> 
> 
> I take guess and begin homework from using exercise 1.
> 
> 
> 
> I try to make Profile field into getter & setter
> methods.  Ask for values from user.  But I think you no
> want this.
> 
> 
> 
> Now I think put into constructor and hardcode
> initialization values?
> 
> 
> 
> But homework says make field inside Profile field.  So, I
> look over this page:
> 
> http://java.sun.com/docs/books/tutorial/java/javaOO/initial.html
> 
> 
> 
> I make field within fields inside with hardcoded values?
> 
> 
> 
> Can you please make suggest to me.  Thank you.
> 
> 
> 
> Zhao
> 
> 
> 
> 
> 
> 
> 
> 
> 
> > 
> 
> 
> 
> 
> 


      

--~--~---------~--~----~------------~-------~--~----~
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