17MCA22 Object oriented programming using C++ syllabus for MCA



A d v e r t i s e m e n t

Module-1 Overview of C++ 10 hours

Overview of C++: The Origins of C++ ,What Is Object-Oriented Programming? ,Encapsulation ,Polymorphism , Inheritance. Some C++ Fundamentals ,A Sample C++ Program ,A Closer Look at the I/O Operators, Declaring Local Variables ,No Default to int, The bool Data Type , Old-Style vs. Modern C++ , The New C++ Headers , Namespaces, Working with an Old Compiler, Introducing C++ Classes, Function Overloading, Operator Overloading ,Inheritance Constructors and Destructors ,The C++ Keywords, The General Form of a C++ Program. Classes and Objects: Classes, Structures and Classes Are Related, Unions and Classes Are Related , Anonymous Unions, Friend Functions, Friend Classes, Inline Functions, Defining Inline Functions Within a Class Parameterized Constructors, Constructors with One Parameter: A Special Case Static Class Members ,Static Data Members ,Static Member Functions ,When Constructors and Destructors Are Executed ,The Scope Resolution Operator, Nested Classes, Local Classes, Passing Objects to Functions ,Returning Objects ,Object Assignment.

Module-2 Arrays, Pointers, References, and the Dynamic Allocation Operators 10 hours

Arrays, Pointers, References, and the Dynamic Allocation Operators: Arrays of Objects, Creating Initialized vs. Uninitialized Arrays , Pointers to Objects, Type Checking C++ Pointers , The this Pointer, Pointers to Derived Types , Pointers to Class Members , References, Reference Parameters, Passing References to Objects, Returning References, Independent References, References to Derived Types, Restrictions to References, A Matter of Style , C++'s Dynamic Allocation Operators ,Initializing Allocated Memory ,Allocating Arrays ,Allocating Objects ,The nothrow Alternative ,The Placement Form of new.

Function Overloading, Copy Constructors and Default Arguments: Function Overloading, Overloading Constructors, Overloading a Constructor to Gain Flexibility, Allowing Both Initialized and Uninitialized Objects Copy Constructors , Finding the Address of an Overloaded Function , The overload Anachronism, Default Function Arguments, Default Arguments vs. Overloading, Function Overloading and Ambiguity.

Module-3 Operator Overloading 10 hours

Operator Overloading: Creating a Member Operator Function, Creating Prefix and Postfix Forms, of the Increment and decrement Operators , Overloading the Shorthand Operators, Operator Overloading Restrictions, Operator Overloading Using a Friend Function, Using a Friend to Overload ++ or – –, Friend Operator Functions Add Flexibility , Overloading new and delete, Overloading new and delete for Arrays, Overloading the nothrow Version of new and delete, Overloading Some Special Operators, Overloading [ ] , Overloading ( ), Overloading –>, Overloading the Comma Operator.

Inheritances: Base-Class Access Control, Inheritance and protected Members, Protected Base-Class Inheritance, Inheriting Multiple Base Classes, Constructors, Destructors, and Inheritance, When Constructors and Destructors Are Executed , Passing Parameters to Base-Class Constructors, Granting Access, Virtual Base Classes.

Module-4 Virtual Functions and Polymorphism 10 hours

Virtual Functions and Polymorphism: Virtual Functions, Calling a Virtual Function Through a Base, Class Reference, The Virtual Attribute Is Inherited, Virtual Functions Are Hierarchical, Pure Virtual Functions, Abstract Classes, Using Virtual Functions, Early vs. Late Binding.

Templates: Generic Functions, A Function with Two Generic Types, Explicitly Overloading a Generic Function, Overloading a Function Template, Using Standard Parameters with Template Functions , Generic Function Restrictions , Applying Generic Functions, A Generic Sort, Compacting an Array, Generic Classes, An Example with Two Generic Data Types, Applying Template Classes: A Generic Array Class, Using Non-Type Arguments with Generic Classes, Using Default Arguments with Template Classes, Explicit Class Specializations, The typename and export Keywords, The Power of Templates .

Exception Handling: Exception Handling Fundamentals, Catching Class Types, Using Multiple catch Statements, Handling Derived-Class Exceptions, Exception Handling Options, Catching All Exceptions, Restricting Exceptions, Rethrowing an Exception, Understanding terminate( ) and unexpected( ), Setting the Terminate and Unexpected Handlers, The uncaught_exception( ) Function, The exception and bad_exception Classes Applying Exception Handling.

Module-5 Standard C++ I/O Classes 10 hours

Standard C++ I/O Classes : Old vs. Modern C++ I/O, C++ Streams, The C++ Stream Classes, C++'s Predefined Streams, Formatted I/O, Formatting Using the ios Members, Setting the Format Flags, Clearing Format Flags, Overloading << and >>, Creating Your Own Inserters, Creating Your Own Extractors, Creating Your Own Manipulator Functions

C++ File I/O: fstream> and the File Classes, Opening and Closing a File, Reading and Writing Text Files, Unformatted and Binary I/O, Characters vs. Bytes, put( ) and get( ), read( ) and write( ), More get( ) Functions, getline( ) , Detecting EOF, The ignore( ) Function, peek( ) and putback( ), flush( ), Random Access, Obtaining the Current File Position , I/O Status, Customized I/O and Files.

STL : An Overview of the STL, Containers, Algorithms, Iterators and Function Objects, The String Class, Vector Class, Lists, Maps.

Last Updated: Tuesday, January 24, 2023