View Single Post
Old Oct 29, 2009, 02:04 AM   #5
spy2520
200 Posts
 
Join Date: Mar 2006
Posts: 386 (0.15/day)
Thanks: 13
Thanked 16 Times in 15 Posts

System Specs

Quote:
Originally Posted by FordGT90Concept View Post
You have to change the access modifiers on properties in the Face class to "protected" if you want an inherited class to have access to it. "private" will hide it from everything except itself.

@Kreig: It's the same as C#. XD
I'll post the code in a bit. But what i'm looking at is "public enum faces {king, queen, jack, ace}" and subsequently "public faces face;" as part of FaceCard. Are you saying i should use protected instead of public?
__________________
99 SS bonestock...
spy2520 is offline  
Reply With Quote