top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

C++: Difference between virtual class and virtual function ?

+1 vote

When a function is declared as virtual and when a class ? Please explain with examples.

posted Oct 2, 2018 by Vikram Singh

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
0 votes

Given a Calendar class (there are three fields, year, month, day) and a number of N, Implement a function that returns the calendar after N days.

Input: {2017, 3,20} and 12,
Output: {2017,4, 1}

0 votes

While doing design for a software, what things enforce to use template classes and template functions ?
Is it consider best practices or not ?

Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.