Originally posted by Shilpa Pisipati:
Of course Fred......You need to give output of this code.........
Considering that Fred doesn't have the code -- especially the parts that has the setFavorite and getFavorite methods -- wouldn't it be easier for you to just run it yourself?
BTW, asking for the output is not a question which you will get a lot of answers, since it shows that you are not showing much effort. A better question is showing the output yourself, explain why you think it is wrong, and asking why?
Henry