Making a class chart for Chuck Noris was pretty straight forward, I started by using Draw.io to actually create my class chart. I then wrote down my characters name which in this case was Chuck Noris I then created a separate section for his attributes like his name which has a + to show it is public and i used a string for his name for the memory allocation benefits. For other attributes still used a public function but instead of a string i used an integer (int) as using a full number is the best way to represent his attributes like strength, speed and will power. The last one was a private bool function that determines if Chuck Noris will beat you. Then i the void section is where i grouped functions to create things like attack, defence and will kill you abilities so for example putting strength and speed together are what build up his attack.
top of page
bottom of page
Comments