Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

THE ICFAI UNIVERSITY TRIPURA

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING


INTERNAL II ASSESMENT, SEM I, AY-2023-24

PROGRAM: B. Tech 2nd Year FULL MARKS: 05


COURSE TITLE: Object Oriented Programming Concepts COURSE CODE: ES206

*********************************************************************************************
Assignment No: 02

Quest 01: 2

How Function overloading differs from function overriding in C++?

Quest 02: 3

(Write the source code with output and explain the methodology for the following scenarios)

Create two classes named as “Mammals” and "Marine Animals”. Design a new class
called "BlueWhale," which is an inherited version of the two classes mentioned before. Create a
function that prints the following in each of these classes:

"I am a mammal"
"I am a marine animal"
"I belong to both categories: mammals and marine animals".

Now, make an object for every class mentioned above, and attempt calling
i. Function of “Mammals” by the object of “Mammal”
ii. Function of “MarineAnimal” by the object of “MarineAnimal”
iii. Function of “BlueWhale” by the object of “BlueWhale”
iv. Function of each of its parent by the object of “BlueWhale”.

The deadline for submission is Wednesday November, 8, 2023.


(Any assignment turned in or marked done after the due date is recorded as late)

You might also like