Syntax for Pure Virtual Function - Polymorphism and Abstract Classes

Q.  Syntax for Pure Virtual Function is ______________ .
- Published on 17 Jul 15

a. virtual void show()==0
b. void virtual show()==0
c. virtual void show()=0
d. void virtual show()=0

ANSWER: virtual void show()=0
 

    Discussion

  • ram   -Posted on 03 Mar 21
    all question answer solved that ok
  • Brijesh   -Posted on 24 Oct 15
    A virtual function that has no definition within the base class is called as pure virtual function.
    virtual void show()=0;

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)