Hyderabad Jobs Book Website FREE PowerBuilder Training I Love Hyderabad Hyderabad Colleges
Home Business Emails Hyderabad Classifieds Contact Us
7 Wonders of Hyderabad Web Hosting Yellow Pages Our Network

 
Webpowerbuilder.hyderabad-colleges.com

Questions And Answers for PowerBuilder Interviews

HomePrevious Lesson: Question: #84 of #131
Next Lesson: Question: #86 of #131
Question: #85 of #131 Section: DataWindow Version: 5.0 or later

Question

How a 'Shared Variable' is different from a 'Instance Variable'?

Click here to see the answer

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Answer

Well, the value of an instance variable in each instance is independent of other instances. Instance variables are created when the object is created and will be destroyed when the object is destroyed. On the other hand, the shared variable is shared between different instances of the variable. That means, changing the shared variable in one instance will affect other instances. The shared variable is created when the FIRST instance of the object is created and is destroyed when the application is closed. You can't refer to an object's shared variable when none of the instance is open, even though the shared variables exists in the memory.

Click here to go to top of the page.
HomePrevious Lesson: Question: #84 of #131
Next Lesson: Question: #86 of #131

Copyright © 1996 - 2006 HamaraShehar.com Pvt. Ltd. All Rights Reserved.
Domain Registration, Website Design, Website Hosting by HamaraShehar.com