Course File Oops Using C++ (21-22)
Course File Oops Using C++ (21-22)
Overview of C++:
UNIT - II
Classes and Objects: Defining Classes in C++, accessing class members, access specifiers(Public and
Private),defining member functions, static data members, static member functions, friend functions,
friend classes, inline functions, nested classes, passing objects to functions, returning objects, object
assignment, Array of objects, Constructor and Destructors
UNIT – III
UNIT – IV
Polymorphism:
Operator Overloading: Overloading Unary Operators, and Overloading Binary Operators using friend
functions, Function Overloading,
UNIT – V
C++ I/O Systems Basics: C++ Streams, C++ Stream classes, Unformatted I/O Operations, Formatted
I/O Operations, Formatting using Manipulators. C++
File I/O: Introduction, Classes for file stream Operations, Opening and closing a file, detecting end-of-
file
TEXT BOOK
1. Herbert Schildt, The Complete Reference C++, Fourth Edition, TMH Publications.
REFERENCES
Prerequisite:Learning C language .
Course Outcomes(CO’s):
CO2: Able to Understand and Apply the concepts of Classes &Objects,friend function , constructors
&destructors in program design.
CO3: Able to Design & implement various forms of inheritance, String classs,calling base class
constructors .
CO4: Able to Apply & Analyze operator overloading, runtime polymorphism , Generic Programming.
CO5: Able to Analyze and explore various Stream classes, I/O operations and exception handling.
Kommuri Pratap Reddy institute of Technology
Department of CSE
Outcome Based Lesson Plan
Academic year : 2021-22 Course :OOP(C++)
Programme : B.Tech Unit No. : 1 to 5
Year & Sem : II & I Section : A
Date
S.NO TOPIC TO BE COVERED TLP DM AM
Tentative Actual
UNIT – I
OOP Paradigm
1 19/10 2 1
UNIT –
II
Defining Classes in C++, accessing
14 12/11 2 1,9
class members,
access specifies(Public and
15 13/11 2 1,9
Private),defining member functions,
32 13/12
34 15/12
UNIT –
III9
Base class, derived class, access
8/12 2 1
35 specifier (Protected),
42
hierarchical
UNIT - IV
55
Function Overloading Run time 20/1 2 1,9
Polymorphism: Virtual functions,
56
Function Overloading Run time 21/1 2,3 1,9
Polymorphism: Virtual functions
UNIT – V
81 15/2
ASSESSMENT SUMMARY:
Assignments,
Quiz, Tutorials 05
etc.
Mid Exams 20
Model Exams --
End Exam 75
Attendance --
Total 100
I × 2
II × 2
CS305 III × 2
PC
IV × 2
V × 2
I × 3 1
II × 3 1
CS305 III × 3 1
PC
IV × 3 1
V × 3 1
Signature
LESSON PLAN
Date: 18-10-21
Sub Code:L167
To
Sub Name: OBJECT ORIENTED PROGRAMMING THROUG C++ LAB
Branch: CSE Year:II B.Tech Semester : III 02-12-22
Week – 1:
1. Write a C++ program to find the sum of individual digits of a positive integer.
2. Write a C++ program to generate the first ‘n’ terms of the sequence. A Fibonacci sequence
is defined as follows: the first and second terms in the sequence are 0 and 1. Subsequent
terms are formed by adding the preceding two terms in the sequence.
3. Write a C++ program to generate all the prime numbers between 1 and n. Where ‘n’ is a value
supplied by the user.
Week – 2:
4. Write a C++ programs that use both recursive and non-recursive functions
Week – 3:
6. Write a C++ program to find out the total and average marks of 10 students using
7. Write a C++ program to implement static data members and static member
functions
8. Write a C++ program to implement the matrix ADT using a class. The operations
Week –5:
Week –6 :
11. Write C++ programs that illustrates the usage of following forms of inheritance. (Exercise the
access specified protected also)
Week –7 :
12. Write a C++ program to call base class constructors in the following forms of inheritance.
Week –8 :
13. Write a C++ program that illustrates the concept of Function over loading?
14. Write a C++ program that overloads the binary + operator to concatenate two strings and to
add two complex numbers.
Week –9 :
15. Write a C++ program that overloads the unary ++ operator to increment each element of the
given one dimensional array by ‘1’?
16. Write a C++ program that illustrates run time polymorphism by using virtual functions.
Week –10 :
17. Write a template based C++ program to check whether the given item is existed in the array
or not.
18. Write an example C++ program to illustrate the procedure of exceptions handling.
Week-11:
20. Write a C++ program which copies the contents of one file to another.
CEOs:
After undergoing this laboratory module, the student will be able to:
CO1: Implement and test the concepts of Classes &Objects, friend functions, constructors
&destructors in program design of a few example exercises.
CO2: Design & implement a few forms of inheritance through a few exercises.
CO3: Test the performance of Polymorphism and Generic Programming through a few exercises.
LESSON PLAN
Date:
18-10-21
3. 05/10/2021 WEEK – 1
4. 12/10/2021 WEEK – 2
5. 19/10/2021 WEEK – 3
6. 26/10/2021 WEEK – 4
7. 09/11/2021 WEEK – 5
8. 16/11/2021 WEEK – 6
9. 07/12/2021 WEEK – 7
15 20/01/2022 WEEK – 11
18-10-21
3. 03/11/2021 WEEK – 1
4. 17/11/2021 WEEK – 2
5. 24/11/2021 WEEK – 3
6. 31/11/2021 WEEK – 4
7. 07/12/2021 WEEK – 5
8. 14/12/2021 WEEK – 6
9. 21/12/2021 WEEK – 7
Prepared by Approved by
Signature
Date
Question Bank
Object Oriented Programming Using C++
9) Which of the following statements are true with respect to the use of friend
10) What are the functions that can have access to the protected members of a class?
17) Which of the following way is legal to access a class data member using the
thisPointer?
19) C++ program can not run if function not in the program.
25) Which value will it take when both user and default values are given?
a) user value
b) default value
c) custom value
1. Explain basic concepts / properties / principleof 1. Explain about control structure in C++. 1. Explain about static keyword.
OOPS in detail.
2. Explain different data types in C++. 2. Explain types of constructor in C++.
2. Difference between Procedural Oriented
Programming Languages(POPs) and OOPS. 3. Explain about types of array in C++. 3. Explain about friend function and friend
classes.
3. i) Write benefits of OOPS 4. i)Write about scope resolution operator
4. How to create classes and objects in
ii) Write applications of OOPS ii) Write about function with default C++ with example.
arguments.
4. Explain generations of programming 5. Write about member function object as
languages. 5. Explain different operators in C++. argument and return type with example.
5 MARKS: 5 MARKS:
5 MARKS: 1. Explain about function overloading. 1. Write about destructor with example.
1. Write about OOPS paradigm. 2. Write about reference variable. 2. Discuss about array of object.
2. Write about object oriented languages. 3. Write about multi-dimensional array with 3. Explain about defining member
example. function.
4. Write about Inline function with example. 4. Write about dynamic constructor.
5. Write about access specifier in C++. 5. Write difference between structure and
classes.
Extra: Structure of C++, Comments,
Variables, Keyword, Identifier, Constant, 6. Write difference between constructor
scope of variable , storage classes. and destructor.