Candibiotic
News Update :

English Premier League

Bundesliga

La Liga

Showing posts with label Scope. Show all posts
Showing posts with label Scope. Show all posts

Scope

Friday, August 21, 2009

Scope refers to the lifetime of a variable.
There are four basic scopes:
Static variables live basically as long as their class lives.
Instance variables live as long as their object lives.
Local variables live as long as their method is on the stack; however, if their method invokes another method, they are temporarily unavailable.
Block variables (e.g.., in a for or an if) live until the block completes

Football News

 

© Copyright Vinayak Wins 2010 -2011 | Design by Herdiansyah Hamzah | Published by Borneo Templates | Powered by Blogger.com.