Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

difference between static and non-static variables?

Answer Posted / santosh mundhe

Static:1)Memory allocated before creation of object.
2)Gets memory on Global segment.
3)Object can't get copy of static variable, each
object shears static variable from global segment.
4)Static variables are not part ob object.

Non-static:
1)Gets memory on satck segment.
2)Object gets copy of non static variable.
3)Non static variables are part of object.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the benefit of oop?

1048


What is difference between abstraction and encapsulation?

1070


Which language is not a true object oriented programming language?

1127


2. Give the different notations for the class.\

2153


Why is oop useful?

1099


What are the 5 oop principles?

1119


What is this pointer in oop?

1063


What are the benefits of oop?

1245


What polymorphism means?

1067


What are the benefits of polymorphism?

1262


What is abstraction oop?

1078


What makes a language oop?

1048


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

2313


Why do while loop is used?

1027


What is encapsulation example?

1049