Question 15926 – STQC-NIELIT SC-B 2021
March 17, 2024Question 6971 – Computer-Graphics
March 17, 2024OOPS
|
Question 69
|
A member function can always access the data in __________ , (in C++).
|
the class of which it is member
|
|
|
the object of which it is member
|
|
|
the public part of its class
|
|
|
the private part of its class
|
Question 69 Explanation:
→ A member function can always access the data in the class of which it is member.
→ Functions within classes can access and modify (unless the function is constant) data members without declaring them, because the data members are already declared in the class.
→ Functions within classes can access and modify (unless the function is constant) data members without declaring them, because the data members are already declared in the class.
Correct Answer: A
Question 69 Explanation:
→ A member function can always access the data in the class of which it is member.
→ Functions within classes can access and modify (unless the function is constant) data members without declaring them, because the data members are already declared in the class.
→ Functions within classes can access and modify (unless the function is constant) data members without declaring them, because the data members are already declared in the class.
