[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Technical Discussion :: C++

78. What is a pure virtual function? And explain with an example.

Answer:

A virtual function, equated to zero is called a pure virtual function. It is a function declared in a base class that has no definition related to the base class.

e.g.: virtual void display () =0;

Asked In :: Accenture Sapient

Post Your Answer Here:

Name *
Email
Alert me

Post Your Reply Here:

Report Error

Please Login First Click Here