The Artima Developer Community
Sponsored Link

Web 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 4:21 AM
Reply to this message Reply

This post originated from an RSS feed registered with Web Buzz by Huw Collingbourne.
Original Post: ActionScript Refactoring - Getters and Setters
Feed Title: SapphireSteel Software
Feed URL: http://www.sapphiresteel.com/spip.php?page=backend&id_rubrique=1
Feed Description: Discussion of Ruby, Flex and the Ruby In Steel and Amethyst/Flex IDEs for Visual Studio.
Latest Web Buzz Posts
Latest Web Buzz Posts by Huw Collingbourne
Latest Posts From SapphireSteel Software

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: Extract Text from Images Online with Free Online OCR Previous Topic   Next Topic Topic: What to do if Hackintosh Reboots Constantly After OSX86 Install.

Sponsored Links



Google
  Web Artima.com   

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