|
Prev: pointer to member function and derivated class
Next: how to parse a csv file of decimal numbers?
From: Mononoke on 21 Nov 2007 04:54 Hi all I am looking for about 35- hours exercise to practice polymorphism and oo any idea? thanks
From: Francis Glassborow on 21 Nov 2007 10:07 Mononoke wrote: > Hi all > I am looking for about 35- hours exercise to practice polymorphism and > oo > any idea? > thanks Not exactly easy to answer because people program at very different speeds. One of my favourite exercises is to code up chess pieces. This not only requires polymorphism but objects that can change their spots (pawns getting promoted)
From: Chris ( Val ) on 21 Nov 2007 10:50 On Nov 21, 8:54 pm, Mononoke <Taly.Ga...(a)gmail.com> wrote: > Hi all > I am looking for about 35- hours exercise to practice polymorphism and > oo > any idea? > thanks I don't think you can put a time limit on such a topic :-) But FWIW, you could practice with a common polymorphic example that is to do with graphical objects, all derived from an abstract shape class. An abstract Animal class that allows you to derive different types of animals is also a worthy exercise. There should be at least 35 hours of practice there :-) Good luck! -- Chris
From: Mononoke on 21 Nov 2007 13:22 Hi all sorry, I meant 3 to 5 hours. the time limit is just to explain what kind of exercise I want. another reson is that I am going to job interviews and there is a test on the computer, and I want to practice. I am sure there are samples like that in the internet, just not sure what keywords to look for .search a lot "interview questions c++" and got theoretic questions that I already practise them. any idea what kind of search will bring more accurate results? I want to try to do my best transfering a question/task info code, hope I am more clear now thanks \ On Nov 21, 5:50 pm, "Chris ( Val )" <chris...(a)gmail.com> wrote: > On Nov 21, 8:54 pm, Mononoke <Taly.Ga...(a)gmail.com> wrote: > > > Hi all > > I am looking for about 35- hours exercise to practice polymorphism and > > oo > > any idea? > > thanks > > I don't think you can put a time limit on such a topic :-) > > But FWIW, you could practice with a common polymorphic > example that is to do with graphical objects, all derived > from an abstract shape class. > > An abstract Animal class that allows you to derive different > types of animals is also a worthy exercise. > > There should be at least 35 hours of practice there :-) > > Good luck! > > -- > Chris
|
Pages: 1 Prev: pointer to member function and derivated class Next: how to parse a csv file of decimal numbers? |