Some interesting facts about static member functions in C++

来源:互联网 发布:struct node 编辑:程序博客网 时间:2024/05/22 06:42

Ref http://www.geeksforgeeks.org/some-interesting-facts-about-static-member-functions-in-c/

 

1) static member functions do not have this pointer.

2) A static member function cannot be virtual (See this G-Fact)

3) Member function declarations with the same name and the name parameter-type-list cannot be overloaded if any of them is a static member function declaration.

4) A static member function can not be declared constvolatile, or const volatile.

0 0
原创粉丝点击