June 23rd, 2013, 06:47 PM
Struct at the inside of class
while writing code i got a question. For example i created a class named as unit.
Think a simple game, and the unit class will belong the units.
İf i give the preferences as private one by one, it will be irregular. For a detailed game; height, weight, race, hair preferences, eyes... Strength, dexterity, charisma, intelligence, wisdom, constution... experience, damage, armor...
and should i use struct to group them? And how to can i use struct at the inside of class as private? Can u give me examples.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.