You have one base class virtual function how will call that
function from derived class?

Answer Posted / mazher

class B:A
{
public override void A_Func()
{
base.A_Func();
}
}

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1577


What are the 3 pillars of oop?

813


Which is better struts or spring?

775


Can you inherit a private class?

816


How do you define social class?

761






What is the problem with multiple inheritance?

770


Which language is not a true object oriented programming language?

818


What is data binding in oops?

780


Can private class be inherited?

849


What is abstract class in oops?

747


How long to learn object oriented programming?

772


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1848


What is inheritance write a program to show use of inheritance?

834


What is the use of oops?

765


What is constructor overloading in oop?

809