difference between static and non-static variables?

Answer Posted / sujitha.r

Static:
*No instance is required.
*Automatic Invocation.

Non-Static:
*Instance is required.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the advantage of oop over procedural language?

858


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1760


c++ program to swap the objects of two different classes

2146


Why is polymorphism needed?

810


explain sub-type and sub class? atleast u have differ it into 4 points?

2060


What is property in oops?

811


when to use 'mutable' keyword and when to use 'const cast' in c++

1907


How can you overcome the diamond problem in inheritance?

976


What are the 3 principles of oop?

853


can inline function declare in private part of class?

4011


What language is oop?

790


What is overriding vs overloading?

811


write knight tour problem which is present in datastructure

2399


Why do we use class in oops?

762


What is object in oop?

893