Object Oriented Programming BIT153
Object Oriented Programming BIT153
Course Description:
The course familiarizes students with the concepts of object oriented programming using C++.
Course Objective:
The main objective of this course is to understand the basics of object oriented programming. This
course covers the C++ concepts such as objects, class, operator overloading, inheritance and
polymorphism, file I/O, exception handling and templates.
Detailed Syllabus
Unit Teaching Methodology Teaching Hours
Unit 1: Introduction to Object Oriented Programming (3 Hrs.)
1.1 Overview of structured and object oriented Lecture 3
programming approach, Characteristics of object
oriented languages: Object, Class, Data
Abstraction, Encapsulation, Inheritance,
Polymorphism, Dynamic Binding, and Message
Passing.
Text Book
1. Robert Lafore, Object Oriented Programming in C++, Fourth Edition, SAMS
publications.
Reference Books
2. Deitel and Deitel, C++ How to Program, Third Edition, Pearson Publication.
3. Joyce Farrell, Object-oriented programming using C++, Fourth Edition, Cengage
Learning.
4. Herbert Schildt, C++ The Complete Reference, Fourth Edition, Tata McGraw Hill
5. Publication.
6. E. Balagurusamy, “Object Oriented Programming With C++”, 7th Edition, Mc Graw Hill
India.
7. A. S. Saud, “C++ Programming with Object Oriented Approach”, 2nd Edition, KEC
Publication and Distributor.
Model Question
Course Title: Object Oriented Programming Full Marks: 60
Course No: BIT153 Pass Marks: 24
Time: 3 Hrs. Semester: II
Section A
Attempt ANY TWO {10 ×2=20}
1. Write a program to create a class Customer with data members customer Id, Name, and
age. Put member functions to read and display values of data members. Also define
constructors to initialize data members with default value. Finally create object to read and
display data of 10 customers.
2. Create a class Employee with private data members Eid, Ename, and Salary. Include public
member functions to read and display value of data members. Derive a class names Typist
from above class. The class should contain a private data member typing_speed and public
member functions to read and display values of data members. Finally create two objects
of typist class and read and display their values.
3. What are the different ways of achieving static polymorphism? Discuss overloading of pre-
increment and post-increment operators with suitable examples.
Section B
Attempt ANY EIGHT {5 ×8=40}
4. What is meant by default argument? Explain with suitable example.
5. What are the uses of this pointer? Discuss its concept with suitable example.
6. What is destructor? Discuss its characteristics with suitable example.
7. Write a program to convert floating point value to object of distance class with data
members feet and inch.
8. How late binding differs from early binding? How can you achieve dynamic
polymorphism? Explain with example.
9. What is meant by ambiguity? Explain ambiguity in multiple inheritance and its solution
with example.
10. Write a program to handle “array index out of range” exception.
11. Why concept of templates is important? Explain function templates with example.
12. Write a program to read text from keyboard and write it to a file named “test.txt”. Again
read the content of file and display it in the monitor.
Lab Manual