$dealer->deals(); // Show the players' hands echo "<div class='headline'>Player's Hands</div>"; foreach ($allPlayers as $player) { echo $player->showHand(); } echo "<div class='divider'></div>"; // Show the players' scores echo "<div class='headline'><b>Score</b></div>"; $dealer->scoreGame(); echo $dealer->showScores(); echo "<div class='divider'></div>"; // Determine and display a winner echo "<div class='headline'><b>And The Winner Is...</b></div>"; $dealer->determineWinners(); echo $dealer->showWinners(); echo "</div>"; /* * ################################################################################################################################### * ##################################################### OTHER QUESTIONS ############################################################# * ################################################################################################################################### * * Can you talk more about ::? What does it really mean? What is a good example of when we could use it for this game? * * What was the proper method of extending classes from one another? Is there an issue with my implementation? * * At the top of every class do you put every property you will use, or only those that will be returned by a function? Also, is it okay * to assign those properties a value at the top of the class? * * Is it bad to have a method depend on another method running beforehand? What is the best way to account for this? Ex: $dealer->determineWinners() * needs to run before $dealer->showWinners()