Ask Question
1 February, 02:40

All members within a class are by default

+3
Answers (1)
  1. 1 February, 05:04
    0
    All the members within a class are by default are private. Private function in a class can access public function within a similar class. Private member formed the implementation of the class and also form the private interface of members within the class.

    All the member of class can be access by function inside the class when it is declare as private.

    For example:

    class test

    { private:

    int a; / / when test:a is private

    public:

    test () : a () / / a is accessible in test class

    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “All members within a class are by default ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers