Should the member functions which are made public in the base class be hidden?
Answer / Neetu Kuma
In C++ inheritance, member functions declared as public in the base class can be accessed by derived classes and their objects. Therefore, they should not be intentionally hidden unless there is a specific reason to do so, such as encapsulation or overriding.
| Is This Answer Correct ? | 0 Yes | 0 No |
When copy constructor can be used?
What is a try block?
How the virtual functions maintain the call up?
Write a program which uses functions like strcmp(), strcpy()? etc
What is meaning of in c++?
What is c++ programming language?
What is low level language in simple words?
Write a program that read 2o numbers in and array and output the second largest number. Can anybody help??
What is a .lib file in c++?
What is dev c++ used for?
what are function pointers?
Write a short code using c++ to print out all odd number from 1 to 100 using a for loop