troubleshooting Question

replacing data in an object

Avatar of mitesh114
mitesh114 asked on
8 Comments1 Solution213 ViewsLast Modified:

I have two classes, helper and xHelper.  In xHelper, I have an object like this:

            Helper Last = new Helper("monkey");
            //Display the data of the object Last.

My tutorial then asks me to create a method getData that takes an object of type Helper and returns an object of the same type.

It then tells me to replace the content of the object Last with the object storing donkey and display the new data of the object last.  Just to point out donkey is stored in an array like this:

            array[2] = new Helper("Donkey",34);

Hope this makes sense

Many thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros