Ok I am working on software to keep score of a football game.
so i have a class called FOOTBALL,
then another 3 classes/forms that inherit FOOTBALL, they control score (SCOREBOX), possession (POSSBOX), and quarter (QUARTERBOX).
the FOOTBALL class has 4 variables, "score" (array of 2 ints), "teams" (array of 2 strings), "possession" (boolean), and "quarter" (int)
after that i have another form called MAINBOX, which creates new instances of the 3 classes (SCOREBOX, POSSBOX, and QUARTERBOX) (like this: private scoring = new SCOREBOX)... however they all technically create their own FOOTBALL classes, so I cannot connect them.
forexample the POSSBOX also shows the teamnames but the SCOREBOX sets the teamneams, since they have separate FOOTBALL classes they don't talk to eachother. What is the proper way to do this?
Hope that all made sense.
so i have a class called FOOTBALL,
then another 3 classes/forms that inherit FOOTBALL, they control score (SCOREBOX), possession (POSSBOX), and quarter (QUARTERBOX).
the FOOTBALL class has 4 variables, "score" (array of 2 ints), "teams" (array of 2 strings), "possession" (boolean), and "quarter" (int)
after that i have another form called MAINBOX, which creates new instances of the 3 classes (SCOREBOX, POSSBOX, and QUARTERBOX) (like this: private scoring = new SCOREBOX)... however they all technically create their own FOOTBALL classes, so I cannot connect them.
forexample the POSSBOX also shows the teamnames but the SCOREBOX sets the teamneams, since they have separate FOOTBALL classes they don't talk to eachother. What is the proper way to do this?
Hope that all made sense.