We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
With Effet from the Academie Vear 2019-2020
Programming in C++ Semester -II
Theory 4 Hours/Week 4 credits
Practical 3 Hours/Week 1 credit
Unit -
Introduction to C++: Applications, Example Programs, Tokens, Data Types, Operators, Expressions, Control
Structures, Arrays, Strings, Pointers, Searching and Sorting Arrays.
Functions: Introduction, Prototype, Passing Data by Value, Reference Variables, Using Reference Variables as
Parameters Inline Functions, Default Arguments, Overloading Functions, Passing Arrays to Functions
Object Oriented Programming: Procedural and Object-Oriented Programming, Terminology, Benefits, OOP
Languages, and OOP Applications
Unit= 11
CCasses: Introduction, Defining an Instance of a Class, Why Have Private Members? Separating Class
Specification from Implementation, Inline Member Functions, Constructors, Passing Arguments to
Constructors, Destructors, Overloading Constructors, Private Member Functions, Arrays of Objects, Instance
and Static Members, Friends of Classes, Member-wise Assignment, Copy Constructors, Operator Overloading,
Object Conversion, Agaregation.
Unit= IIT
Inheritance: Introduction, Protected Members and Class Access, Base Class Access Specification, Constructors
and Destructors in Base and Derived Classes, Redefining Base Class Functions, Class Hierarchies,
Polymorphism and Virtual Member Functions, Abstract Base Classes and Pure Virtual Functions, Multiple
Inheritance
(C++ Streams: Stream Classes, Unformatted 10 Operations, Formatted VO Operations
Unit~1V
Exceptions: Introduction, Throwing an Exception, Handling an Exception, Object-Oriented Exception
Handling with Classes, Multiple Exceptions, Extracting Data from the Exception Class, Re-throwing an
Exception, Handling the bad_alloc Exception.
‘Templates: Function Templaies-Introduction, Function Templates with Multiple Type, Overloading with
Function Templates, Class Templates — Introduction, Defining Objects ofthe Class Template, Class Templates
‘and Inheritance, Introduction tothe STL.
Text ‘Tony Gaddis, Stating out with C++: from control structures through objects (Te)
References. B. Lippman, C++ Primer
Bruce Eckel, Thinking in C++
K.R, Venugopal, Mastering C++
Herbert Schild, C++: The Complete Reference
Bjarne Stroustrup. The C++ Programming Language
Sourav Sahay, Object Oriented Programming with C++With Effect from the Academic
Year 2019-2
CH Lab semester
Pr
sical 3 HoursWeek 1 eredit
1 Write program wo
Print the sum of digits ofa given number.
1. Check whether the given number is Armstrong oF not
€Printhe prime number from 2 to n where as natural number given
‘Write a program to find largest and smallest elements in a given list of numbers and sort the given,
2 fis.
Write a program to read the student name, roll no, marks and display the same using class and
3 object.
Write a program to implement the dynamic memory allocation and de-allocation using new and
44. delete operators using class and object.
Write a program to find area ofa rectangle circle, and square using constructors
6 Write a program to implement copy constructor.
7, Write a program using friend functions and fiend clas,
8 Write a program to implement constructors
§ Default Constructor, Parameterized Constructor, Copy Constructor
§ Define the constructor insidefouside ofthe class
§ Implement all three constructors within a single class as well a use multiple classes( individual
classes)
\Write a program to implement the following concepts using class and object
§ Function overloading
§ Operator overloading (unary/binary(+ and -))
Write a program to demonstrate single inheritance, multilevel inheritance and multiple inheritances.
Write a program to implement the overloaded constructors in inheritance
Write a program to implement the polymorphism and the following concepts using class and object,
§ Virtual functions
§ Pure virtual functions
Write a program to implement the virtual concepts for following conceps|
§ Constructor (not applied)
§ Destructor (applied)
Write a program to demonstrate static polymorphism using method overloading.
Write a program to demonstrate dynamic polymorphism using method overriding and dynamic
‘method dispatch,
‘Write a program to implement the template (generic) concepts
§ Without template class and object.
§ With template class and object
Write the Pseudo Code and draw Flow Chart forthe above programs,
Recommended to use Open Source Software: GCC on Linux; DevC+ (or) CodeBlocks on Windows.