Can we have a private virtual method ?
Answer Posted / nidhi singh
no, we cann't hav private virtual method as virtual is used
in case of inheritance but private members cannot be
inherited..
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
#include
Which language is pure oop?
why reinterpret cast is considered dangerous?
What is polymorphism and its types?
What is oops?what is its use in software engineering?
What is encapsulation with real life example?
What are main features of oop?
2. Give the different notations for the class.\
Can abstract class have normal methods?
What is destructor example?
Why do we use oop?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What are the 5 oop principles?
When not to use object oriented programming?