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

How do you explain polymorphism?

799


What is polymorphism programming?

843


Which language is not a true object oriented programming language?

868


Why do while loop is used?

772


What does and I oop mean?

835


What is the point of oop?

859


What language is oop?

772


How to improve object oriented design skills?

756


What is the types of inheritance?

806


What is balance factor?

814


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

3658


What causes polymorphism?

813


What are functions in oop?

778


write a C++ program for booking using constructor and destructor.

2265


What are the 5 oop principles?

839