Ask Question
29 October, 01:02

All members within a class are by default

+2
Answers (1)
  1. 29 October, 03:55
    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?
Find an answer to your question ✅ “All members within a class are by default ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers