INTRODUCTION TO COMPUTERS & PROGRAMMING

C++ And Object-Oriented Programming     

 

CS-111                                                                                   NO. OF HOURS/WEEK=04+03

                                                                           NO. OF CREDITS=05

 

 

1. Principles of OOP

Software crisis, evolution, POP, OOP, Basic concepts of OOP, Benefits of OOP, Object oriented languages.                                                                                                                                                1 hr.

 

2. Beginning with C++

    Applications of C++, sample program, C++ statements, class example, structure of C++ program, creating the source file, compiling and linking.                      1 hr.

3. Tokens, expressions and control structures.

     Tokens, keywords, identifiers and constants, basic data types, user defined data types, derived data types, symbolic constants, type compatibility, declaration of variables, dynamic initialization, reference variables, operators, scope resolution operator, member dereferencing operators, memory management operators, manipulators, type east operator, expressions and their types, special assignment expressions, implicit conversions, operator overloading, operator precedence, control structures.                                                                                5 hrs.

4. Functions:

    Main function, function prototyping, call by reference, return by reference, inline functions, default arguments, const arguments, function overloading, friend and virtual functions, math Library functions.                                 4 hrs.

5. Classes and Objects:

    C structures. specifying a class. member functions. inline. private functions, nesting of member functions, arrays within a class, memory allocation, static members and functions, arrays of objects, friendly functions, const member functions, pointers to members, local classes.                    6 hrs.

6. Constructors & Destructors:

    Parameterized, default, multiple, copy, dynamic constructors, dynamic initialization of objects, 2D arrays, const objects, destructors.                            3 hrs.

7. Operator overloading and type conversions.

    Unary and binary operator overloading, using friends, string manipulation, type

    conversions.                                                                                                                      4 hrs.

8. Inheritance

    Derived classes, single inheritance, multilevel, multiple, hierarchical inheritance,

    hybrid, virtual base classes, abstract classes, constructors, member classes.

4 hrs.

9. Pointers, virtual functions and polymorphism.

    Pointers, this pointer, derived classes pointers, virtual functions, pure virtual

    functions.                                                                                                                           4 hrs.

 

l0. Introduction to Classes:

    Class fundamentals, declaring objects, assigning object reference variables, introducing methods, constructors, the this keyword, garbage collection, the finalize ( )method, a stack class.                                                                             5 hrs.

 

11. A c1oser look at methods and Classes:

Overloading methods, overloading constructors, using objects as parameters, a closer look at argument parsing, returning objects, introducing access control, understanding static, introducing final, arrays re-visited, exploring the string class, using command- arguments.                      5hrs.

 

12. Inheritance

Inheritance basics, using super, creating a multilevel hierarchy, when constructors are called, method overriding, dynamic method dispatch, using abstract classes, using final with inheritance.             .                               6hrs.

 

13.Packages and Interfaces.

     Packages, access protection, importing packages, interfaces.                                  4hrs

 

Text books:

 

1. Object Oriented Programming with C++, E. Balaguruswamy, 2nd Edition, Tata

      McGraw Hill Publication.

2. The Complete References - Java2, 5th Edition, Herbert Schildt, Tata McGraw

      Hill Publication.

 

References:

1. Programming with C++ - Herbert Schildt.

2. C++ Programming Language, 3rd Edition, Addison Wesley; Bjarne Stroutst1up.

 

                                                                       

INTRODUCTION TO  PROGRAMMING &OOPS  LAB:

Familiarization with MATLAB and MS-ACCESS   ( 2 WEEKS)

Problems based on C++ programming .  (10 WEEKS)