Jump to content

Java Object with Composite parts.


spunog

Recommended Posts

I am passing a Java object to my report. If my object contains instance of another object as a member variable how to I print out the name of the member object.

 

Lets say Class A contains

 

String name;

String phoneNumber;

ClassB building

 

So classB contains :

 

String buildingName;

 

If I pass Class A to my report, how do I print the buildingName in the report????

 

Thanks

 

Spunog

 

 

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...