The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
ActionScript Refactoring - Getters and Setters

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Huw Collingbourne

Posts: 1254
Nickname: huw
Registered: Nov, 2006

Huw Collingbourne is Director of Technology for the Ruby In Steel IDE
ActionScript Refactoring - Getters and Setters Posted: May 30, 2009 3:38 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Huw Collingbourne.
Original Post: ActionScript Refactoring - Getters and Setters
Feed Title: Ruby In Steel
Feed URL: http://www.sapphiresteel.com/spip.php?page=backend
Feed Description: Developers' Blog of the Ruby In Steel and Amethyst (Adobe Flex) IDEs for Visual Studio
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Huw Collingbourne
Latest Posts From Ruby In Steel

Advertisement
Declaring public variables in your classes may give you a quick and easy way of accessing data ‘inside' objects. But public variables are not well encapsulated (they do not enforce ‘data hiding') so it is generally better to make variables private and access them using getter and setter methods. The ‘encapsulate field' refactoring in Amethyst (introduced in beta 5) can automate this process. Here is a simple example. In the first window (above) you (...)

Read: ActionScript Refactoring - Getters and Setters

Topic: Making mutable state faster: optimizing the caml_modify writer barrier Previous Topic   Next Topic Topic: Selling Shoes to the Shoemakers Children

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use