This is the P2PU Archive. If you want the current site, go to www.p2pu.org!
You haven't posted any discussions yet.
Topic for week 2 assignments, questions and answers. Please post only pastie links if you have a lot of code. It is easier to read and to refer to exact line.
Here's my assignment http://pastie.org/1629409. Hope I understood the assignment correctly.
Assignment week 2: Interface
http://pastie.org/1631005
Here's my interface;
http://pastie.org/1637830
(I didn't post last week's exercise, but it was a simpler version of Pokenoms that involved animals. Hint: this interface is meant to be used with a base class of Animal.)
And an implementation of Ville's interface;
http://pastie.org/1637813
I create Engine interface for Vehicle class (http://p2pu.org/webcraft/node/14024/forums/26642#comment-11583)
And it's implementation in simplified Vehicle class: http://pastie.org/1641170
Here's my interface for my furnace/air example:
http://pastie.org/1641871
Afraid I'm not well versed enough in Pokemon to attempt an implementation of an interface for that :)
http://pastie.org/1642094
I hope I got it right, I used the baby class from Vladimir (http://pastie.org/1641871), btw nice job I had no trouble understanding your class.
Here is my StyleInterface (http://pastie.org/1654762)
And here is my implementation of Ben's interface (http://pastie.org/1654802)