[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C++ Programming :: OOPS Concepts - Discussion

Home > C++ Programming > OOPS Concepts > MCQs Questions Discussion

5 / 14

Choose the correct option.

Which two entities(reading from left to right) are connected by the dot operator(or class member access operator)?

AA class member and a class object

BA class object and a class

CA class and a member of that class

DA class object and a member of that class

Answer: Option (Login/Signup)

Show Explanation

{

    private:

        int data;

    public:  

        void function()

        {   

data = 10; 

        }

   };

int main()

{

    Test t1;

}

Test is a class and t1 is an object of class Test. We can access members of class Test using object t1. So the function 'function()' can be accessed as t1.function().

Asked In :: Wipro

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here