Object Oriented Programming (OOP) C++ Notes with Programming Solutions

With the primary objective of familiarizing Engineering students with Object Oriented Programming (OOP), one of the most popular language C++ was chosen by Institute of Engineering (IOE), Tribhuvan University (TU) in its updated syllabus. The course is included in Second year of Computer (BCT) and Electronics & Communication (BEX) of Bachelor Degree in central campus, Pulchowk and other affiliated Engineering colleges in Nepal. The course aims to develop pure object oriented programming skills in BE students.

The syllabus of C++ with complete course contents including marking scheme and recommended books can be accessed from IOE SYLLABUS – Object Oriented Programming (OOP) C++ page. The newly designed course consists of following topics:

  • Introduction to Object Oriented Programming
  • Introduction to C++
  • C++ Language Constructs
  • Objects and Classes
  • Inheritance
  • Polymorphism and Dynamic Binding
  • Stream Computation for Console and File Input /Output
  • Templates
  • Exception Handling

The following notes in PDF format includes almost all of the chapters of OOP and can be read online or downloaded. Click on corresponding links for full access to C++ note for Second Year of BE.

  1. C++ by Dissection by Ira Pohl
  2. C++ lecture notes
  3. Object Oriented Programming In C++  [sourced from bhawesh.com.np]

Amit Chaudhary has compiled the solutions of programming related part of past IOE Board exam questions. The solutions can be accessed from his github repo. Thanks to Amit for the Object Oriented Programming solutions.

2062 Baisakh:
2. Write a program that illustrate pass by reference and return by reference.
3. Write a program that illustrates constructors with initializer list.
6. Write a program to compare complex numbers with relational operators.
7. Write a program that inherits person class to teacher and student.
9. Write a program to make your own manipulator.
10. Write a program that catches multiple exceptions using exception class.

2062 Poush:
2. Write a program to make distances class and its object. The distances class has feet and inches.
6. Write a program that converts a data of a class with inch and feet(user defined) to inches(float).
9. Write a program to read and display Cartesian Coordinate using stream operators.

2063 Baisakh:
6. Write a program to read and display complex numbers using stream operator overloading and addition and subtraction of complex numbers using operator overloading.

2064 Jestha:
8. Write a program that stores the information about the student(student id,DOB,department and address) in a structure until user says “no”. After reading the data, write it to a file then display the content of the file in the proper format on your output screen.

2064 Falgun:
2. Write a program to display n characters by using default argument for all parameters.Assume that the function takes two parameters one character to be printed and other number of characters to be printed.

2065 Shrawan:
2. Write a program to check whether the number is prime or not using object class concept. Remember to return enumerated true or false the function where you check the number.

2068 Baisakh:
6. Write a program to display the output in pyramid form as follows.
A
AB
ABC
ABCD

2069 Ashad:
8. Write a program that uses a vector container to represent array and display the result in ascending order. For sorting you can use the vector member functions.

2070 Chaitra:
3. Write a C++ program to join two strings using dynamics constructor concept.

If you have any important resource materials, please feel free to drop comment or contact us via any media.

We're always listening.
Have something to say about this article? Find us on Facebook, Twitter or our LinkedIn.
Raju Dawadi
Raju Dawadi
Raju is currently actively involved in DevOps world and is focused on Container based architecture & CI/CD automation along with Linux administration. Want to discuss with him on any cool topics? Feel free to connect on twitter, linkedIn, facebook.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.