top of page

CST338 - Week 11

  • Writer: YZ
    YZ
  • Mar 24, 2020
  • 2 min read

What is the largest multi-dimensional array that you have used?

What is the largest that you think would be unwieldy and why?

I have never used multi-dimensional arrays before; I was just introduced to them when reading Chapter 6. It was very interesting to read about them and see different examples of how they are used. They seem to come in handy in a multitude of real world situations. I think the book explained the concept very well, helping me visualize that these multidimensional arrays are "arrays of arrays." I think any array larger than a 3D array will be hard to visualize, understand, and keep track of all of the values.


What does inheritance do for your classes?  Have you used it in the past? How?

A general class called the base class is created and then a more specialized class, the derived class is created as well, which inherits from the base class. The derived class has the instance variables and methods of the base class, and then a programmer can add on variables and methods to make the derived class more specific. This helps because the variables and methods don't need to be rewritten for each of the derived classes. I have used inheritance before in course assignments from previous classes.


Assignment 3

This week, we were assigned the first team project which instructed us to write a program including a Card, Hand, and Deck class to be used for a game of cards. We met initially and discussed how we would break up the project among us and then individually set to work. I focused on the Hand class. Once we finished we combined all our code and met again to review the code and fix any problems or bugs. I think this step was very helpful as others were able to look critically at my code from a fresh perspective and suggest fixes and improvements. It also introduced me to the world of collaborating on programming projects with other people which I know will most definitely prepare me for the future. My teammates were so helpful and a pleasure to work with. Although the work this week was very difficult and required a lot of patience, I feel accomplished that together we were able to create the program!




Comments


Post: Blog2_Post
  • Facebook
  • Twitter

©2020 by yz-learningjournal-csumb. Proudly created with Wix.com

bottom of page