Can we have a private virtual method ?
Answer Posted / edward
yes... we can have private virtual method and will not give
any compile time/runtime error. but there is no use of it.
we could not call the method from out side of the class
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is class in oop with example?
what's the basic's in dot net
What is the real time example of inheritance?
Why is destructor used?
What is difference between multiple inheritance and multilevel inheritance?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
to find out the minimum of two integer number of two different classes using friend function
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
• What are the desirable attributes for memory managment?
How does polymorphism work?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
program for insertion ,deletion,sorting in double link list
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 is use of overloading?