0% found this document useful (0 votes)
11 views1 page

C++ Lab Index Sheet-7

The document outlines a lab assignment on object oriented programming concepts for students. It lists various programming problems to demonstrate inheritance, polymorphism, constructors and destructors, and how to avoid the diamond problem in C++.

Uploaded by

Koushik Chintha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views1 page

C++ Lab Index Sheet-7

The document outlines a lab assignment on object oriented programming concepts for students. It lists various programming problems to demonstrate inheritance, polymorphism, constructors and destructors, and how to avoid the diamond problem in C++.

Uploaded by

Koushik Chintha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

VASAVI COLLEGE OF ENGINEERING

(AUTONOMOUS)
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING
Problem Solving through Object Oriented Programming Lab
[2022 – 2023]
Lab Index Sheet – 7
Date Date of
Prog. Title of the Program Date of Pg
And Record
Num. (Module – 5) Execution No
Time Submission
47. Demonstrate the concept of public inheritance and
static polymorphism by creating a Shape base
class with Rectangle and Triangle as derived
classes with suitable attributes for getting the area.
48. Demonstrate the concept of Dynamic
polymorphism by creating a Shape base class with
Rectangle and Triangle as derived classes with
suitable attributes for getting the area. (OR)
With an example program, demonstrate the concept
of ad-hoc polymorphism. (OR)
Demonstrate the concept of runtime object
binding. (OR)
Demonstrate the concept of virtual function, pure
virtual function and function overriding. (OR)
(As per Timetable)

Demonstrate the concept of pure virtual function


and Abstract Base Class. (OR)
Week – 9

Demonstrate the concept of Late binding.


49. Test the order of constructors and destructors calling
in the following types of inheritances when an object
is created.
a) Multiple inheritance
b) Multi-level inheritance
c) Hybrid inheritance
d) Hierarchical inheritance
50. Demonstrate the concept of explicit parameterized
base class constructor calling in the derived class
parameterized constructor initializer with a suitable
example.
51. With a meaningful example, demonstrate the concept
of Hybrid inheritance. (OR)
What is the Diamond problem? Using an example in
C++ demonstrate how it can be avoided? (OR)
Demonstrate the concept of VBC (Virtual Base
Class).
Conduction of Lab & Showing the output 5M
Record Submission 5M
Total (E7) 10M
Assessment

Signature of the
Faculty:

You might also like