Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Getters and Setters

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
vjedlicka Posted - Aug 23 2007 : 4:33:35 PM
Can getters start with Get and setters with Set?
for example when I have field

int m_age;

I get

int Age() const { return m_age; }
void Age(int val) { m_age = val; }

I would prefer GetAge() and SetAge()

Thank you
Vaclav
3   L A T E S T    R E P L I E S    (Newest First)
vjedlicka Posted - Aug 24 2007 : 1:59:12 PM
It is ok now, thank you guys!
feline Posted - Aug 24 2007 : 08:55:41 AM
See here for some more details on this:

http://www.wholetomato.com/products/features/encapsulateField.asp
rhummer Posted - Aug 23 2007 : 5:07:34 PM
You can change how it is generated. There is an Auto Text entry called 'Refactor Encapsulate Field' simply modify that entry to have a Get and Set.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000