What is the largest multi-dimensional array that you have used?
3
What is the largest that you think would be unwieldy and why?
If you use a vector to access the elements than my understanding is that it does not matter how many dimensions the array is.
What does inheritance do for your classes? Have you used it in the past? How?
Inheritance makes it easier to write more generalized classes, with methods that will be useful to a variety of different, more specific classes. Yes, I have used inheritance in the past when working on projects similar to this week’s in simulating card games for example.
Update your learning journal from what you experienced this week with class.
This week’s project was quite fun. Working with my team we created three different classes, Card, Hand, and Deck, which simulated how playing cards would be used. It included methods for multiple decks, shuffling the decks, drawing cards, and more. Besides the project we also reviewed such topics as the enum type, class inheritance, and references. Overall there were a lot of different topics covered.
No comments:
Post a Comment