--Your friends at LectureNotes

Object Oriented Programming Using Cpp

by Jntu Heroes
Type: NoteInstitute: JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY Downloads: 4Views: 47Uploaded: 7 months agoAdd to Favourite

Touch here to read

Object Oriented Programming Using Cpp by Jntu Heroes

Jntu Heroes
Jntu Heroes

/ 133

Share it with your friends

Suggested Materials

Leave your Comments


Jntu Heroes
Jntu Heroes
Object Oriented Programming through C++ 1 Provided by JNTU World Team (www.alljntuworld.in)
SYLLABUS Module I (08 hrs) Introduction to object oriented programming, user defined types, structures, unions, polymorphism, and encapsulation. Getting started with C++ syntax, data-type, variables, strings, functions, default values in functions, recursion, namespaces, operators, flow control, arrays and pointers. Module II (16 hrs) Abstraction mechanism: Classes, private, public, constructors, destructors, member data, member functions, inline function, friend functions, static members, and references. Inheritance: Class hierarchy, derived classes, single inheritance, multiple, multilevel, hybrid inheritance, role of virtual base class, constructor and destructor execution, base initialization using derived class constructors. Polymorphism: Binding, Static binding, Dynamic binding, Static polymorphism: Function Overloading, Ambiguity in function overloading, dynamic polymorphism: Base class pointer, object slicing, late binding, method overriding with virtual functions, pure virtual functions, abstract classes. Operator Overloading: This pointer, applications of this pointer, Operator function, member and non member operator function, operator overloading, I/O operators. Exception handling: Try, throw, and catch, exceptions and derived classes, function exception declaration, unexpected exceptions, exception when handling exceptions, resource capture and release. Module III (16 hrs) Dynamic memory management, new and delete operators, object copying, copy constructor, assignment operator, virtual destructor. Template: template classes, template functions. Standard Template Library: Fundamental idea about string, iterators, hashes, iostreams and other types. Namespaces: user defined namespaces, namespaces provided by library. Object Oriented Design, design and programming, role of classes. 2 Provided by JNTU World Team (www.alljntuworld.in)
CONTENTS Chapter No Chapter Name Chapter 1 Introduction 1 Chapter 2 Class and Object 30 Chapter 3 Inheritance 48 Chapter 4 Polymorphism 64 Chapter 5 Operator Overloading 73 Chapter 6 Exception Handling 82 Chapter 7 Dynamic Memory Management 92 Chapter 8 Templates 99 Chapter 9 Standard Template Library 107 Chapter 10 Namespace 112 Previous Year BPUT Questions 120 3 Provided by JNTU World Team (www.alljntuworld.in) Page No
Chapter 1 Procedure/ structure oriented Programming • • • Conventional programming, using high level languages such as COBOL, FORTRAN and C, is commonly known as procedure-oriented programming (POP). In the procedure-oriented approach, the problem is viewed as a sequence of things to be done such as reading, calculating and printing. A number of functions are written to accomplish these tasks. The primary focus is on functions. Global Data Global Data Function-1 Function-2 Function-3 Local Data Local Data Local Data Object Oriented Programming • • • • • Emphasis is on data rather than procedure. Programs are divided into what are known as objects. Data is hidden and cannot be accessed by external functions. Objects may communicate with each other through functions. New data and functions can be easily added whenever necessary. Object A Data Functions Object B Data Functions Object C Data Functions 4 Provided by JNTU World Team (www.alljntuworld.in)

Lecture Notes