Back to list
Views:   0
Replies:  0
please someone provide me solution....plz...
Sep 21, 2012
Reply 1
For this problem you can use "Visitor" pattern.
Define a Person class and different visitors for each accessory like footwear, pants etc.

From the the console class based on the conditions, each "accessory visitor" will visit the "Person"
Print the final output.

Hope this helps you!

Vivekananda P, Oct 18, 2012
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas