Static private function

This is a discussion on Static private function within the C++ Programming forums, part of the General Programming Boards category; Just a simple question: Is there any difference between a static public member function and a static private member function? ...

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    109

    Question Static private function

    Just a simple question:

    Is there any difference between a static public member function and a static private member function?

    Thanks

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    6,458
    Yes. One is public and the other is private.
    Right 98% of the time, and don't care about the other 3%.

  3. #3
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,231
    Quote Originally Posted by grumpy
    Yes. One is public and the other is private.
    lol.

    Welcome syzygy. static modifier does not change their accessibility.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  4. #4
    Registered User
    Join Date
    Mar 2010
    Posts
    109
    Quote Originally Posted by siavoshkc View Post
    lol.

    Welcome syzygy. static modifier does not change their accessibility.
    Thank you.

    Okay, I guess you can only call a static private function from inside the object. I guess I didn't see the point of that when thinking about it so I began wondering if they equated to being the same (i.e., both public).

    Thanks for the help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 03:06 PM
  2. dllimport function not allowed
    By steve1_rm in forum C++ Programming
    Replies: 5
    Last Post: 03-11-2008, 03:33 AM
  3. [GLUT] Pointers to class methods
    By cboard_member in forum C++ Programming
    Replies: 13
    Last Post: 02-16-2006, 03:03 PM
  4. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 01:53 AM
  5. <Gulp>
    By kryptkat in forum Windows Programming
    Replies: 7
    Last Post: 01-14-2006, 12:03 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21