What is static function and static class?

Answer Posted / anthony michael

Static function and static variable does not below to single
instance of a class.

To access static functions we don't need instance of a class
instead it can be accessed using the class name followed by
::operator as:
[class_name::static_function() ]

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are c++ templates used for?

898


What is a manipulative person?

765


Should the this pointer can be used in the constructor?

784


What are virtual functions in c++?

926


Differentiate between late binding and early binding.

991


What is the prototype of printf function?

898


what is Member Functions in Classes?

852


What are the extraction and insertion operators in c++? Explain with examples.

931


To what does “event-driven” refer?

840


What is linked list in c++?

919


What is the exit function in c++?

773


How do you flush std cout?

846


What is c++ used for in games?

836


Explain function overloading

809


What is buffer and example?

738