Understanding Inheritance


Submit solution

Points: 10
Time limit: 2.0s
Memory limit: 12M

Author:
Problem type
Allowed languages
C++

TASK

To understand how inheritance works.

Input Format:

The first line of the input contains the child value

the second line contains the parent value

Output Format:

Two lines containing parent and child IDs

Sample Input: 7

91

Sample Output:

Child id is 7

Parent id is 91


Comments

There are no comments at the moment.