Why static functions always uses static variables?

Answer Posted / george from psg

static function is constant to all object. In the same way
static variable is constant to all so we use static variable
in static function

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the realtime excercises in C++?

2333


Why is object oriented programming so hard?

612


What is the example of polymorphism?

554


Why polymorphism is used in oops?

578


What is the purpose of polymorphism?

674






Why we use classes in oop?

575


What are the 4 pillars of oop?

666


What are the 3 principles of oop?

614


What is a function in oop?

627


How do you explain polymorphism?

586


What is the main feature of oop?

618


What is pure oop?

597


what are the different types of qualifier in java?

1837


Get me a number puzzle game-program

1690


Why do we use class?

633