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 destructor give example?

608


Write a program to reverse a string using recursive function?

1798


Plese get me a perfect C++ program for railway/airway reservation with all details.

3431


What is an advantage of polymorphism?

601


What is overriding vs overloading?

590






Why do we use class in oops?

557


What is solid in oops?

617


What is constructor in oop?

591


How to call a non virtual function in the derived class by using base class pointer

5283


What is the difference between procedural programming and oops?

561


What are classes oop?

602


What does <> mean pseudocode?

626


Why is abstraction used?

612


write a programe to calculate the simple intrest and compund intrest using by function overlading

1672


How many human genes are polymorphic?

577