Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Default value of type-report not possible?
Index -> Programming, Turing -> Turing Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Tony




PostPosted: Thu Mar 29, 2012 8:00 pm   Post subject: Re: Default value of type-report not possible?

ModsCentral @ Thu Mar 29, 2012 7:54 pm wrote:
Is there no way for the class to detect any modifications to the variables hence call the load proc itself?

This is typically accomplished by keeping the variables private, and exposing them through getter/setter methods. So instead of
code:

myTextbox.x = 42

you'd do
code:

myTextbox.setX(42)

which would internally assign 42 to variable x, but could also do other actions.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 16 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: