M
Michael Bell
I am learning C++ and I have just got onto classes.
I use Borland Builder 5
I was under the impression that you could give your variables any name
you liked, eg :-
NumbaOne
FatHarry
PagePeg
-: but I was astonished to discover, by trial and error, that if
you create a class like this :-
class ShipType
{
protected:
DeckType MethodName(void);
..
..
etc
then the ending "-Type" was compulsory, if you don't use the ending
-"Type", then it won't compile.
Is this really correct?
What other rules must you comply with?
Michael Bell
--
I use Borland Builder 5
I was under the impression that you could give your variables any name
you liked, eg :-
NumbaOne
FatHarry
PagePeg
-: but I was astonished to discover, by trial and error, that if
you create a class like this :-
class ShipType
{
protected:
DeckType MethodName(void);
..
..
etc
then the ending "-Type" was compulsory, if you don't use the ending
-"Type", then it won't compile.
Is this really correct?
What other rules must you comply with?
Michael Bell
--