Subject: Object Oriented Programming using C++

Course: M.Sc.-I (CS)

Primary Reference Book:

Object Oriented Programming with C++ by E Balagurusamy (third edition)

    • 19 July 2010, Monday.

Chapter 1: Principles of Object Oriented Programming

Programming as a way of creating useful computational models of reality; Problems in modeling reality with this paradigm; Crisis, complexity and how to deal with it;

(Sec 1.2) Software Evolution; (Sec 1.3) Procedure Oriented Programming (POP); Description and discussion on POP; Understanding relation among data structures in POP; Characteristics of POP;

(Sec 1.4) Object Oriented Paradigm; Striking features of OOP; Organization of data and functions in OOP;

(Sec 1.5) Basic concepts in OOP: Objects, Classes, Data abstraction and encapsulation, Inheritance, Polymorphism, Dynamic binding, Message passing; (Sec 1.6) Benefits of OOP;

    • 20 July 2010, Tuesday

Chapter 2: Beginning with C++

Introduction; (Sec 2.3) A simple C++ program; comments; variables; (Sec 2.5) An example with Class;

Chapter 3: Tokens, Expressions and Control Structures

Introduction; (Sec 3.5) Basic data type; (Sec 3.7) Derived data types: arrays, functions, pointers; (Sec 3.18) Type cast operator; Various types of expressions; (Sec 3.24) Control structures: if and if-else, switch, do-while, while, for;

    • 26 July 2010, Monday

In this class we discussed the exercises mentioned in our reference book. We covered representative examples of "Debugging Exercises" and "Programming Exercises" for Chapter 2. Each was solved by a student on the blackboard; barring simple error detection in statements.

Further we covered more involved exercises (both in syntax and logic) from Chapter 3.

    • 27 July 2010, Tuesday

Chapter 4: Functions in C++

A brief introduction of Functions and their usage in POP; Structure of function; (Sec. 4.2) The main() function; (Sec. 4.3) Function Prototyping; syntax, examples, special illustrations, exceptions; (Sec 4.4) Call by Reference: Description, explanation and comparison with call by value; benefits; an example; (Sec. 4.9) Function Overloading: purpose, usage, example;

Chapter 5: Classes and Objects

Introduction; Basic understanding of what a class is, class as a data type; (Sec 5.3) Specifying a Class; the broad structure of class; declaration of class; Simple example of a class; Creating objects from the class; example; special illustration; accessing the class members using, say, getdata() and putdata() ;

Declaration of Assignment No. 1

ASSIGNMENTS (Object Oriented Programming using C++):

Assignment No. 1 (The PDF of the assignment is uploaded. Click to download.)

Date: 27 July 2010; Last Date of Submission: 9th August 2010

Assignment No. 2 & 3 (The PDF of the assignment is uploaded. Click to download.)

Date: 9 July 2010; Last Date of Submission: 17th August 2010

Assignment No. 4 (The PDF of the assignment is uploaded. Click to download.)

Date: 10 July 2010; Last Date of Submission: 19th August 2010

<< Ganesh Bagler's Home-Page << >> Ganesh's Teaching Page >>