L
T
P
C
BTCE201 bject oriented
O 3 0 2 4
Programming with C++
Total Credits:4 Total Hours in semester :45 Total Marks: 100
1 Course Pre-requisites: C Programming
2 Course Category:
bility Enhancement Courses / Skill Enhancement Courses/Core Courses
A
/ Professional or Discipline Specific Elective /Generic Elective /Open
Elective
3 Course Revision/ Approval Date:
4 Course Objectives :
4.1 To aware students about the basics of OOP for every O-O based programming
language.
4.2 To familiar students with class and object with function
4.3 To make student understand working and importance of constructor and destructor
4.4 To give brief idea about inheritance
4.5 To provide an overview of file handling and templates
Course Content Weightage ontact
C Pedagogy
hours
nit 1:
U 20% 9 halk – Talk,
C
Principles of OOP: Programming Presentatio n
Paradigms,Basicconcepts,Benefitsof
OOP, Applications of OOP.
Introduction to C++, History of C++,
Structure of C++, Basic data types,
Derived data types,
ymbolic constants. Dynamic
S
initialization, Type modifiers, Type
Casting, Operator and control
statements, Input and Output
statements in C++.
Practicals :
Writeaprogramtodemonstratesimple
C++ structure with help of cout and
cin. Write a program to demonstrate
cascadingI/O.Explaintheuseofname
space in C++ with proper examples.
Write a different program to
demonstrate control statements
available in C++.
1) Write a different program to
demonstrate loops available in
C++.
nit 2:
U 20% 9 halk –
C
Classes and objects, class Talk,
specification, member function Presentat
specification, scope resolution io n
operator, Access qualifiers, Instance
creation, Member functions. Function
prototyping, Function components,
and Passing parameters, call by
reference, Return by reference, Inline
functions, Default arguments,
Overloaded function.
Practicals :
1) Write a program to demonstrate
scope resolution operators.
2) Write a program to demonstrate
reference variables in C++.
3) Write a program to demonstrate
implicit type casting in c++.
4) Write a program to demonstrate
explicit type casting in C++.
5) Write a program to demonstrate
const keyword and #define.
6) Write a program todemonstrate
different types of user defined
function and Function call
7) Write a program to demonstrate
class and object creation.
8) Write a program to demonstrate
to define a member function
inside the class and outside the
class.
9) Write a program to show the
working of different access
specifiers .
10)What do you understand about
the Inline function? How can
you create an Inline function ?
nit 3:
U 20% 9 halk –
C
Theory: Talk,
Array of objects, pointers to objects, Presentatio
this pointer, Dynamic allocation n
operators, Dynamic objects.
Constructors, parameterized
constructors,Overloadedconstructors,
Constructors with default arguments,
copy constructors, static class
members and static objects. Operator
Overloading, Overloading unary and
binary operator, Overloading the
operator using friendfunction,stream
operator overloading, data conversion.
Practicals :
1) Why do an array of objects
require? Demonstrate an array
of object with proper example.
2) Writeaprogramtodemonstrate
concepts and different types of
constructor.
3) Write difference between
Constructor overloading and
overriding. Also apply the
concept with proper examples.
4) Writeaprogramtodemonstrate
friend function.
5) Writeaprogramtodemonstrate
the concept ofcopyconstructor
and static class member.
nit 4:
U 20% 9 omputer
C
Theory: based
Inheritance, Defining derived learning,
classes, Single inheritance,protected Chalk –
data with private inheritance, Talk,
multiple inheritance, multi-level Presentatio
inheritance, hierarchical inheritance,
n
hybrid inheritance, multipath
inheritance, Constructors in derived
and base class, Abstract classes,
virtual function and dynamic
polymorphism, virtual destructor.
Exception Handling, principle of
Exception handling, Exception
handling mechanism, multiplecatch,
Nested try, Rethrowing the
exception.
Practicals :
1) Write a program to demonstrate
different type of inheritances
2) How can userapplytheconcept
of polymorphism.
3) Write a program to demonstrate
the exception handling
4) Explain the behavior of the
constructor in derived class
using examples.
nit 5:
U 20% 9 omputer
C
Theory: based
Streams in C++, Stream classes, learning,
Formatted and Unformatted data, Chalk –
manipulators, User Talk,
defined manipulators, file streams,
Presentatio
file pointer manipulation, file open
and close. Templates, Template n
functions and Template classes.
Practicals :
Perform following operation of file
management
1) Count characters & spaces
2) Append to a file
3) Copy contents & change case
4) Merge two files
5) Count characters, words & lines
6) Arrange records in descending
order
7) Add & read contents of file
8) Create file to store employee
details
9) Display content of file
Learning Resources
1 Text Books:
. 1. C++ Primer by Barbara E. Moo, Josée Lajoie, Stanley B.
Attendance 5 Marks
Quiz 5 Marks
kill enhancement activities / case
S 5 Marks
study
Presentation/ miscellaneous activities 5 Marks
ippman, 5th Edition
L
. Starting Out with C++ - From Control Structures through
2
Objects by Tony Gaddis,
3. Accelerated C++: Practical Programming by Example by
ndrew Koenig, 1st Edition
A
2 Reference Books:
. 1. Object-Oriented Programming with C++ by E Balagurusamy,
Seventh edition
2. Let US C++ by Yashwant Kanetkar, 2nd Edition
3
. Video Tutorial
https://www.studytonight.com/courses/cpp-video-tutorial/
4
NPTEL MOOC
https://nptel.ac.in/courses/106/101/106101208/
Evaluation Scheme Total Marks
Mid semester Marks 30
End Semester Marks 50
. Understand object-oriented programming features in
1
C++.
Course Outcomes 2. Apply these features to program design and
implementation,
3. Understand object-oriented concepts and how they are
supported by C++,
4. Understand implementation issues related to object-
oriented techniques