About Me

header ads

OBJECT ORIENTED PROGRAMMING with C++ (BCS306B)

OBJECT ORIENTED PROGRAMMING with C++

Course Code BCS306B 
CIE Marks 50
Teaching Hours/Week (L: T:P: S) 2;0:2 
SEE Marks 50
Total Hours of Pedagogy 28 Hours Theory + 20 Hours of Practical
Total Marks 10
Credits 03 
Exam Hours 03
Examination type (SEE) Theory


Module-1

An overview of C++: What is object-Oriented Programming? Introducing C++ Classes, The General Form of a C++ Program. Classes and Objects: Classes, Friend Functions, Friend Classes, Inline Functions, Parameterized Constructors, Static Class Members, When Constructors and Destructors are Executed, The Scope Resolution Operator, Passing Objects to functions, Returning Objects, Object Assignment Ch 11, Ch 12 


Module-2

Arrays, Pointers, References, and the Dynamic Allocation Operators: Arrays of Objects, Pointers to Objects, The this Pointer, Pointers to derived types, Pointers to class members. Functions Overloading, Copy Constructors: Functions Overloading, Overloading Constructor Functions. Copy Constructors, Default Function Arguments, Function Overloading and Ambiguity. Ch 13, Ch 14 

Module-3

Operator Overloading: Creating a Member Operator Function, Operator Overloading Using a Friend Function, Overloading new and delete Inheritance: Base-Class Access Control, Inheritance and Protected Members, Inheriting Multiple Base Classes , Constructors, Destructors and Inheritance, Granting Access, Virtual Base Classes Ch 15, Ch 16 


Module-4

Virtual Functions and Polymorphism: Virtual Functions, The Virtual Attribute is Inherited, Virtual Functions are Hierarchical, Pure Virtual Functions, Using Virtual Functions, Early vs Late Binding. Templates: Generic Functions, Applying Generic Functions, Generic Classes. The type name and export Keywords. The Power of Templates Ch 17, Ch 18 


Module-5

Exception Handling: Exception Handling Fundamentals, Handling Derived-Class Exceptions, Exception Handling Options, Applying Exception Handling. The C++ I/O System Basics: C++ Streams, The C++ Classes, Formatted I/O File I/O: and File Classes, Opening and Closing a File, Reading and Writing Text Files, Detecting EOF. Ch 19, Ch 20, Ch21 Course outcome (Course Skill Set)

Suggested Learning Resources:

Books

1. Herbert schildt, The Complete Reference C++, 4 the  edition, TMH, 2005

Reference Books

1. Balagurusamy E, Object Oriented Programming with C++, Tata McGraw Hill Education Pvt.Ltd., Sixth Edition 2016.

2. Bhave , “ Object Oriented Programming With C++”, Pearson Education , 2004.

3. A K Sharma , “Object Oriented Programming with C++”, Pearson Education, 2014



Experiments

1 Develop a C++ program to find the largest of three numbers

2 Develop a C++ program to sort the elements in ascending and descending order.

3 Develop a C++ program using classes to display student name, roll number, marks obtained in two subjects and total score of student

4 Develop a C++ program for a bank empolyee to print name of the employee, account_no. & balance. Print invalid balance if amount<500, Display the same, also display the balance after withdraw and deposit.

5 Develop a C++ program to demonstrate function overloading for the following prototypes.

add(int a, int b) 

add(double a, double b

6 Develop a C++ program using Operator Overloading for overloading Unary minus operator.

7 Develop a C++ program to implement Multiple inheritance for performing arithmetic operation of two numbers

8 Develop a C++ program using Constructor in Derived classes to initialize alpha, beta and gamma and display corresponding values.

9 Develop a C++ program to create a text file, check file created or not, if created it will write some text into the file and then read the text from the file.

10 Develop a C++ program to write and read time in/from binary file using fstream

11 Develop a function which throws a division by zero exception and catch it in catch block. Write a C++ program to demonstrate usage of try, catch and throw to handle exception.

12 Develop a C++ program that handles array out of bounds exception using C++. 

Post a Comment

0 Comments