GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Programming  >  Algorithms
Go To First  |  Previous Question  |  Next Question 
 Algorithms  |  Question 10 of 38    Print  
What is the difference between instance(per object ) and static (shared by all objects) in report while declaring global variable?

  
Total Answers and Comments: 1 Last Update: November 21, 2007     Asked by: Muthukumaran 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: randeep singh
 
In case of instance per object every instance have its own memory space but in case of static variable every instance access same memory space for that variable.

Above answer was rated as good by the following members:
guitarfox, Ketan Singhal
November 21, 2007 22:58:31   
randeep singh        

RE: What is the difference between instance(per object...
In case of instance per object every instance have its own memory space but in case of static variable every instance access same memory space for that variable.
 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 0Overall Rating: +2    

 Related Questions

Latest Answer : We may forget, the question is really talking about objects of same class. So I think all the answer on virtual functions are wrong. tehoclub may get close to the point of the question in my opinion. ...

Val is a well-known 1. real-time language 2. object-oriented language 3. command language 4. data-flow language
Read Answers (1) | Asked by : Rujul

Latest Answer : Searching means finding whether the element is present in the list or not whereas sorting means Arranging the list in ascending or descending order. ...
Read Answers (3) | Asked by : Varsha

What is the difference between instance(per object ) and static (shared by all objects) in report while declaring global variable?
Read Answers (1) | Asked by : Muthukumaran

You have n numbrer Node objects - could be 1,000,000 for all you know. Each Node has a getNext() method that returns the next Node (a linked list).But the chain of n number of Node objects linked together 
Latest Answer : There are many ways to find loops in linked list but the best one is known as tortoise and hare algorithm.In this we take 2 nodes say slow and fast node. Then we move the slow node by one shift ie startNode.next and the fast node with 2 shifts and then ...
Read Answers (2) | Asked by : wcmaggot


 Sponsored Links

 
Related Articles

ODP.NET - OracleCommand Object

ODP NET More About the OracleCommand Object Till now we have seen OracleCommand working with OracleDataReader OracleCommand is not simply meant for OracleDataReader It has got a lot of functionality for itself Let us see few of the most commonly used features of OracleCommand in this section We will
 

Microsoft AJAX Library - Creating Object Members on the Fly

Creating Object Members on the Fly One major difference between OOP in C and ASP NET and OOP in JavaScript is that JavaScript allows creating object members on the fly" This is true for objects and classes that you create yourself and also for JavaScript s own objects and types as well He
 

Microsoft AJAX Library - Object-Oriented JavaScript

Object Oriented JavaScript Objects and classes are implemented differently in JavaScript than in languages such as C VB NET Java or C However when it comes to using them you ll feel on familiar ground You create objects using the new operator and you call their methods or access their fields using t
 

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

C++ Static Functions

C Static Functions Static member functions have a class scope and they do not have access to the this pointer of the class When a member is declared as static a static member of class it has only one data for the entire class even though there are many objects created for the class The main usage of
 

Object-Oriented Client-Server Internet

Object Oriented Client Server Internet OCSI Environments as IT Infrastructure Client Server Basics Object Oriented Client Server Internet OCSI environments provide the IT infrastructure for supporting OCSI applications For our purposes infrastructure refers to operating systems networks middleware
 

C++ Objects and Classes

C Objects and Classes An Overview about Objects and Classes In object oriented programming language C the data and functions procedures to manipulate the data are bundled together as a self contained unit called an object A class is an extended concept similar to that of structure in C programming l
 

JavaScript Objects

JavaScript Objects Object oriented Programming in an important aspect of JavaScript It is possible to use built in objects available in JavaScript It is also possible for a JavaScript programmer to define his own objects and variable types In this JavaScript tutorial you will learn how to make use
 

JavaScript String Object

JavaScript String Object In this JavaScript tutorial you will learn about String Object purpose of string object in JavaScript purpose of string object indexof method lastIndexOf method and substring method along with syntax and example mosgoogle center Purpose of String Object in JavaScript The mai
 

JavaScript Date Object

JavaScript Date Object In this JavaScript tutorial you will learn about date object and methods of date object explained along with syntax and example mosgoogle center JavaScript Date Object Usage of Date Object Date object of Java Script is used to work with date and times General syntax for defini
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape