The document summarizes a student's experiment on object oriented programming. It discusses function overriding using an average function, why function overriding is required, and the concept of nesting classes. The student implemented code examples, provided explanations of overriding and nesting, and noted their learning outcomes from inheritance and overriding concepts.
The document summarizes a student's experiment on object oriented programming. It discusses function overriding using an average function, why function overriding is required, and the concept of nesting classes. The student implemented code examples, provided explanations of overriding and nesting, and noted their learning outcomes from inheritance and overriding concepts.
The document summarizes a student's experiment on object oriented programming. It discusses function overriding using an average function, why function overriding is required, and the concept of nesting classes. The student implemented code examples, provided explanations of overriding and nesting, and noted their learning outcomes from inheritance and overriding concepts.
The document summarizes a student's experiment on object oriented programming. It discusses function overriding using an average function, why function overriding is required, and the concept of nesting classes. The student implemented code examples, provided explanations of overriding and nesting, and noted their learning outcomes from inheritance and overriding concepts.
Download as DOCX, PDF, TXT or read online from Scribd
Download as docx, pdf, or txt
You are on page 1of 4
Object Oriented Programming
Student Name: <Sahil Goyal>
Subject Code: <21CAH-151>
UID: 21BCA1380 Section/Group: 9B
Semester: 2nd Date of Performance:03-04-22 Experiment No.6
1.Aim/Overview of the practical:
To complete worksheet 2.2.
2.Task to be done: (a) Write a C++ program to represent the function overriding using AVERAGE () function.
(b) Why function overriding is required?
(c) What is nesting of classes?
3.Code for experiment/practical: a. b. Overriding is needed when derived class function has to do some added or different job than the base class function. c. A nested class is a class which is declared in another enclosing class. A nested class is a member and as such has the same access rights as any other member. 4.Result/Output/Writing Summary:
5.Learning outcomes (What I have learnt):
1. Learn how to use inheritance.
2. Leaned about the concept of overriding.
Evaluation Grid:
Sr. No. Parameters Marks Obtained Maximum Marks
1. Demonstration and Performance 5 2. Worksheet 10 3. Post Lab Quiz 5