csc166

Object-Oriented Programming

Exam Preparation: 30 hours
Deep Understanding: 80 hours
Subject Code CSC 166
Credit Hours 3 Hours
Nature Theory + Lab
Full Marks 60 + 20 + 20
Pass Marks 24 + 8 + 8
Description

The course covers the basic concepts of object oriented programming using C++ programming language.

Objective

Understand object oriented programming concepts,Learn advanced C++ concepts such as composition of objects, operator overloads, inheritance and polymorphism,Develop knowledge of file I/O, exception handling and templates in C++

Course Contents

Introduction to Object Oriented Programming

3 Hours

Overview of structured programming approach, Object oriented programming approach, Characteristics of object oriented languages

Basics of C++ programming

5 Hours

C++ Program Structure, Character Set and Tokens, Data Type, Type Conversion, Preprocessor Directives, Namespace, Input/Output Streams and Manipulators, Dynamic Memory Allocation with new and delete, Control Statements, Functions: Function Overloading, Inline Functions, Default Argument, Pass by Reference, Return by Reference, Scope and Storage Class, Pointers: Pointer variables declaration & initialization, Operators in pointers, Pointers and Arrays, Pointer and Function

Classes & Objects

8 Hours

A Simple Class and Object, Accessing members of class, Initialization of class objects: Constructor, Destructor, Default Constructor, Parameterized Constructor, Copy Constructor, The Default Copy Constructor, Objects as Function Arguments, Returning Objects from Functions, Structures and Classes, Memory allocation for Objects, Static members, Member functions defined outside the class

Operator Overloading

7 Hours

Fundamental of operator overloading, Restriction on operator overloading, Operator functions as class members, Overloading unary and binary operators, Data Conversion (basic to basic, basic to user-defined, user-defined to basic, user-defined to user-defined)

Inheritance

7 Hours

Introduction to inheritance, Derived Class and Base Class, Access Specifiers (private, protected, and public), Types of inheritance, Public and Private Inheritance, Constructor and Destructor in derived classes, Aggregation

Virtual Function, Polymorphism, and Miscellaneous C++ Features

5 Hours

Concept of Virtual functions, Late Binding, Abstract class and pure virtual functions, Virtual Destructors, Virtual base class, Friend function and Static function, Assignment and copy initialization, Copy constructor, This pointer, Concrete classes, Polymorphism and its roles

Function Templates and Exception Handling

4 Hours

Function templates, Function templates with multiple arguments, Class templates, Templates and inheritance, Exception Handling: Try, throw and catch, Use of exception handling

File Handling

6 Hours

Stream Class Hierarchy for Console Input/Output, Unformatted Input/Output, Formatted Input/Output with ios Member functions, Formatting with Manipulators, Stream Operator Overloading, File Input/output with Streams, Opening and Closing files, Read/Write from File, File Access Pointers and their Manipulators, Sequential and Random Access to File, Testing Errors during File Operations

Laboratory Works

Students should be able to implement the concepts of Object Oriented Programming using C++ language.

Books

Textbooks

Robert Lafore: Object Oriented Programming in C++, Fourth Edition, SAMS publications
Herbert Schildt: C++ The Complete Reference, Fourth Edition, Tata McGraw Hill Publication

Reference Books

Deitel and Deitel: C++ How to Program, Third Edition, Pearson Publication
Joyce Farrell: Object-oriented Programming using C++, Fourth Edition, Cengage Learning