0% found this document useful (0 votes)
28 views

Lab Plan-Oop

The 16-week lecture/lab plan covers key concepts in object-oriented programming including pointers, arrays, structures, classes, inheritance, polymorphism, operator overloading, templates, and exceptions. Each week combines lectures on new OOP concepts with related hands-on lab tasks to reinforce learning. Some highlights are using dynamic memory allocation, recursion, class constructors/destructors, inheritance, polymorphism through virtual functions, and exception handling. The final two weeks are dedicated to revising concepts and demonstrating a student project.

Uploaded by

aamirali1061a
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Lab Plan-Oop

The 16-week lecture/lab plan covers key concepts in object-oriented programming including pointers, arrays, structures, classes, inheritance, polymorphism, operator overloading, templates, and exceptions. Each week combines lectures on new OOP concepts with related hands-on lab tasks to reinforce learning. Some highlights are using dynamic memory allocation, recursion, class constructors/destructors, inheritance, polymorphism through virtual functions, and exception handling. The final two weeks are dedicated to revising concepts and demonstrating a student project.

Uploaded by

aamirali1061a
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

16 Week Lecture/Lab Plan for OOP

Wk Contents to be covered Lab tasks


Revision of pointers and arrays, 2d and 3d 1. Intro to MS-visual studio 2019
1. ,strings 2. Installation

Static and Dynamic memory allocation 1. Creating and accessing 1D dynamic


array using pointers
2. 2. Memory leak
3. Dangling pointers

Function overloading and recursion 1. Creating and accessing 2D dynamic


array using double pointers
3. 2. Recursion(Fibonacci/print number in
reverse)
3. Declare and initialize structure, access
its members
Using user defined data types , structures 1. Structure within structure
and unions, arrays and vectors 2. Array of structures
3. Passing structure variable as
4. parameter(by value/by reference)
4. Apply vectors(grow/shrink them)
5. Pointer to structure members, access
members using pointer
5. Introduction to OOP, features and 1. Unions demo
motivation 2. Class declare, define , usage
Encapsulation, using abstract data types, 3. Basic Constructor and destructor
6. access specifiers and driver program 4. Default constructor
5. Separate interface and implementation
Constructors and destructors 1. Array of pointers to objects
2. Dynamic objects creation/destruction
7. 3. Copy constructor
4. Static members demo
5. Const members demo

This pointer and composition, aggregation 1. This pointer/cascaded function calls


and association, Friend functions and 2. Composition demo
8. classes 3. Friend functions
4. Friend classes

9. Using inheritance and its types, Class 1. Inheritance(default and parameterized


diagram constructor)
2. Inheritance(overridden functions)

Using Polymorphism and virtual functions 1. Virtual functions(dynamic and static


binding)
10. 2. Virtual functions(virtualize base version
use base class pointer and derived class
object scenario)
3. Pure virtual function demo
Using operator overloading 1. OO of + operator for all four cases
given in slides
2. OO for employee call using double
11. variable
3. OO for employee class using class
object
4. Use cascaded call in main like a+b+c
12. Using Template functions and classes 1. Template function and class example
from book
13. Using Exceptions 1. Exception handling example from book

14. Revision and discussion

15. Project demo

You might also like