Technical Discussion :: C++
Home > Technical Interview Q&A > C++ > Discussion
22 / 187
What is static member function and explain its characteristics
Answer:
A member function that is declared static has following property,
• A static function can have access to only other static members declared in the same class.
• A static member function can be called using the same class name as follows
class_name:: function_name;
Asked In ::
Ranjana V
23 Feb, 2019 5:07 AM
A member function that is declared static has following property,
• A static function can have access to only other static members declared in the same class.
• A static member function can be called using the same class name as follows
class_name:: function_name;
• A static function can have access to only other static members declared in the same class.
• A static member function can be called using the same class name as follows
class_name:: function_name;