Far Western University Mahendranagar, Kanchanpur: Faculty of Engineering
Far Western University Mahendranagar, Kanchanpur: Faculty of Engineering
Faculty of Engineering
Mahendranagar, Kanchanpur
1. Course Introduction
This course aims to provide the object oriented concept after the students have understood the
basic concept of programming in Basic Programming and Data Structure. This course will help
the students to enhance their programming skills in Object Oriented approach and its vocabulary.
The course will help the student to increase the problem solving technique and increase their
logic towards the programming. C++ programming language is taught in this course as an Object
Oriented Programming Language. The course starts with the basic introduction of OOP to the
different features of the object oriented programming.
2. Objectives
After successfully completing the course activities, the student will be able to:
To be familiar with the concept of Unit III Concept of Object and Classes (7 hrs)
Object and Classes. Concept of class, access specifiers, Objects and member
access, defining member function, constructor ( default,
parameterized and copy constructor ), Destructors, array of
objects, object as function arguments and returning objects,
this pointer, DMA for objects and object array, static data
member and static function, constant member function and
constant objects, friend function and friend classes
To be familiar with the virtual Unit VII: Templates and Exception Handling (5 hrs)
functions and dynamic binding. Templates, Function templates, Class templates, Exception
handling constructs (try, catch, throw), Advantage over
To learn about the generic conventional error handling.
programming and how it is
achieved using templates.
To be able to differentiate
between the conventional error
handling and error handling using
exceptions.
To be able to use stream operators Unit VIII File Handling using stream operators (4 hrs)
for file handling. File Input/Output using streams, Opening and Closing Files,
Read/write to/from file, file access pointers and their
manipulators, sequential and random access to file.
Prescribed Text
Object Oriented Programming with C++: E Balagurusamy, Tata Mc-Graw Hill Publication,
4th Edition
“ The secrets of Object Oriented Programming in C++” : Daya Sagar Baral and Diwakar
Baral, Bhudipuran Prakashan, 1st Edition
Reference
Objectives:
Laboratory Works:
1. Revision of C (basics, structure, union, array)
2. Function, pass by reference and return by reference.
3. Function overloading, inline function, Default arguments
4. Object and classes
5. Unary Operator Overloading (+, ++, -- )
6. Binary Operator Overloading (+, - , / )
7. Inheritance (single, multiple, virtual base class)
8. Polymorphism (program using virtual function)
9. Templates and exception handling (function template, class template and basic exception
handling)
10. File Handling (Basic file input/output using stream operators)
Books:
Object Oriented Programming with C++: E Balagurusamy, Tata Mc-Graw Hill Publication,
4th Edition
“ The secrets of Object Oriented Programming in C++” : Daya Sagar Baral and Diwakar
Baral, Bhudipuran Prakashan, 1st Edition
“Object Oriented Programming in C++” : Robert Lafore, Galgotia Publictions, 2010
Edition
“C++ How To Program” : Deitel and Deitel Pearson Education Inc., 5th Edition