You mean, in class A you have an object of class B, and you want to invoke method m on it? That would be "B.m()". Of course method m needs to be visible to class A, which means it can't be declared to be private (and -depending on your package structure- might need to be protected, package-visible or even public).
Ok...maybe I don't get it then...or I am doing something wrong...
Here is my actual assignment now... This is what I am trying to do...I have created a clock disply that calculates the time as 24hr but displays as a 12 hr clock with AM and PM. NOW I need to add the day of the week to the mix.
Here is what I tried....
The DayDisplay class is as follows... public class DayDisplay
The error I am getting is 'can't find symbol - day1'
Am I even close? [ July 28, 2005: Message edited by: Lisa Beglaw ]
Looking at it again, I know what doesn't make sense...but I'm not sure how to make it make sense. I am tempted to just build the incrementDay code into the timeTick method. But I don't think that is what I am supposed to do.