Vidyalelo
Computer Science · Q64

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 64

Q64

Which of the following statements is false?

A.
You typically use a public member function to change the value in a private data member
B.
Because the constructor function does not return a value, you place the keyword void before the constructor's name
Answer
C.
The public member functions in a class can be accessed by any program that uses an object created from that class
D.
An instance of a class is considered an object

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board