Why static functions always uses static variables?

Answer Posted / som shekhar

If you take in the context of the class, static member
functions cannot be called by the ordinary objects because
when normal object calls the function then address of the
object is passed is collected by "this" pointer and static
member function don't have "this" pointer.

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 oops?what is its use in software engineering?

777


What is coupling in oops?

840


What is encapsulation with example?

809


write string class as your own class in java without using any built-in function

2232


Can destructor be overloaded?

812


What is polymorphism and types?

862


What is destructor in oop?

807


How to improve object oriented design skills?

773


Is this job good for future? can do this job post grduate student?

1929


Why is polymorphism needed?

806


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1912


What is difference between pop and oop?

832


What are the 5 oop principles?

862


write a program that takes input in digits and display the result in words from 1 to 1000

2204


What does enum stand for?

882