Testing This Forum
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Testing This Forum
Last edited by Shivafeb17; February 1st, 2018 at 07:05 AM.
Explain, please, what addobj1.tem1 and addobj2.temp2 are supposed to evaluate to in your opinion.
I send 3 values to add function, the values are calculated in class Addition, After that, the result is sent back to the main fiunction, so that the values are received in (temp1, temp2)variables. the output is not valid that should be returned value.
If they are received in temp1 and temp2, then why do you write addobj1.temp1 and addobj2.temp2? "A.b" syntax means "field b in object (class) A".
Shivafeb17 (June 20th, 2013)
That worked !!! Thanks :-) but also i had to remove public modifier of class Addition2.. why is that?