- Jun 15, 2001
- 33,929
- 1,098
- 126
Forgive me, I'm not a programmer and I can't find this anywhere.
Let's say I'd like to create a new class "Dog" (I assume class is the right word, it's not a method). I'd like to define Dog as having the following properties:
-
Color as integer
Breed as string
Weight as double
Barks as boolean
-
For some reason I can't figure out how to do this. Maybe I suck at Google, I don't know. Can anyone paste me some code really quickly?
Let's say I'd like to create a new class "Dog" (I assume class is the right word, it's not a method). I'd like to define Dog as having the following properties:
-
Color as integer
Breed as string
Weight as double
Barks as boolean
-
For some reason I can't figure out how to do this. Maybe I suck at Google, I don't know. Can anyone paste me some code really quickly?