top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

+2 votes
475 views

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.

Example:
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 ?

...