OOP C++ Semester - 4 Object Oriented Programming
OOP C++ Semester - 4 Object Oriented Programming
Note: Examiner will set nine que.<;tions in total. Question one will be compulsory. Question one will have 6 parts of 2.5 marks each
from oil units and remaining eight que.'>tions of 15 marlcs each 10 be set by taking two questions from each unit. The students have to
anempt five questions in t.otal. first being compuL..ory and selecting one from each unit.
Objectives or tht course:
To expose the students 10 the fol.lowing:
• How Object-Oriented Prognunming Conccpcs work.~.
• Crcnting cla.~s object~. occcs.~ing clnss member...
• Concept or binding • early binding and late binding.
UnJt -1
Object-Oriented Programming Concepu: Introduction. comparison between procedural programming paradigm and object-oriented
programming paradigm. basic concepts of object- oriented programming - concepts of an object and a class. interface and
implemenuuion of a cta...s. operation... on object... relat.ionship among object... abstraction. encapsulation. data hiding. inheritwice.
overloading. polymorphism. messaging.
Ouses and Objects: Specifying a class. creating das... objects. accessing cla...s members. access specifiers. static members. use of
const keyword. friends of o cla..s. empty classes. nested classes. locnl classes. abstract classes. container classes. bit fields and cla.~ses.
Uait- D
Inheritance: Introduction, defining derived classes. forms of inheritance. ambiguity in multiple and multipath inheritance. virtual base
cla..s, object slicing , overriding member functions. object composition and delegation. order of execution of constructors and
destructors.
Polnten and Dynamic: Memory Management: Declaring and initializing pointers. accessing data through pointers. pointer arithmetic.
memory allocation (static and dynamic). dynamic memory management using new and delete operators. pointer to on object, this
pointer, pointer related problems • dangling/wild pointers. null pointer assignment. memory leak and allocation fail ures.
UnJt-m
Constructon and Destruc:ton: Need for constructors and destructors. copy constructor, dynamic constructors, explicit constructors,
destructors. constructors and destructors with static members. initializer lists.
Operator Overloading and Type Convenion: Overloading operators. rules for overloading operators, overloading of various
operators, type conversion - basic type to class type. class type to~ic type. class type to another class type.
Virtual (unctions & Polymorphism: Coocept of binding - early binding and late binding. virtual functioos. pure virtual functions,
abstract classes, virtual destructors.
Unit· IV
Exception Band.ling: Review of traditional error handling. basics of exception handling. exception handling mechanism. throwing
mechanism. catching mechanism. rethrowing an exceptioo. specifying exceptions.
Templates and Generic Programming: Template concepts. Function templates. class templates. illustrative examples.