sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (skype, sophie, weemee)Sophie ([personal profile] sophie) wrote in [site community profile] dw_dev_training,
I realise I forgot to talk about what methods are in this post. I'll edit the post a bit later to add the information, though right now I'm a bit tired.

Very simply, though: Methods are code routines that an object can have, which can interact with the memory store of that object. For example, a door might have "open" and "close" methods, which changes whether the door is opened or closed, and a book might have a "nextPage" method, which flips to the next page. (And the RTLBook class would probably have its own "nextPage" method.)



(Read 8 comments)

Post a comment in response:

From:
Anonymous( )Anonymous This account has disabled anonymous posting.
OpenID( )OpenID You can comment on this post while signed in with an account from many other sites, once you have confirmed your email address. Sign in using OpenID.
User
Account name:
Password:
If you don't have an account you can create one now.
Subject:
HTML doesn't work in the subject.

Message:

 
Notice: This account is set to log the IP addresses of everyone who comments.
Links will be displayed as unclickable URLs to help prevent spam.