Hey guys, I'm currently trying to learn
java and my friend gave me an exercise to do and I believe he got this problem off a book called Head First Java. It would be appreciated if some of you more experienced programmers can see if I am doing the exercise correctly.
My answers
b.m1();
c.m2();
a.m3(); = B's m1, A's m2, A's m3,
c.m1();
c.m2();
c.m3(); = B's m1, A's m2, C's m3, 13
a.m1();
b.m2();
c.m3(); = A's m1, A's m2, C's m3, 13
This is the one that I am not sure quite sure about.
a2.m1();
a2.m2();
a2.m3(); = B's m1, A's m2, C's m3, 13
Thanks!