• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Object-Oriented menu - UML model question

Steve_Oaks

Gawd
Joined
Dec 17, 2002
Messages
808
UML Model:
noWorry-Menu.jpg


Background:
I am designing a. OO menu system in php5. Because this will be a web-based menu system the ability to do a heir navigation is a must.

As it is diagrammed above, there will be a menu object which contains an array of menuItem objects. The MenuItem class is abstract, menuItem object will either be instatiaded off the Text class or the ImageRollover class.

Here is the problem:
How should I go about allowing the menuItems to have sub menu items or a menu within them? I have drawn and redrawn on paper 10 different ways I *could* do it though none of the seem to follow proper OO design.
 
Back
Top