C++ Theory Assign
C++ Theory Assign
1. Deadline is final and will not be changed at all. Violation of deadline will award zero
marks in assignment.
2. All questions are to be completed handwritten in neat and clean manner.
3. Submit in a short register and no loose bound assignment will be accepted.
4. In all the question assume suitable data and methods yourself. The question itself
should guide you in this regard.
Module I: Introduction
1. C vs C++ Program: Write a simple "Hello World" program in both C and C++ to
compare the syntax and structure differences.
2. Object and Class: Implement a C++ program to define a class named Student with
attributes and methods, and create an object to access them.
3. Abstraction: Write a C++ program to create an abstract class Shape with a pure virtual
function area() and derive classes Circle and Rectangle.
4. Encapsulation: Implement a class Employee with private data members and public
member functions to get and set the data.
5. Inheritance: Create a base class Animal with a method sound() and derive classes Dog
and Cat that override the sound() method.
6. Polymorphism: Write a program to demonstrate function overloading with a class Math
that has multiple add methods.
7. Dynamic Binding: Create a base class Base with a virtual function show() and a derived
class Derived that overrides show(). Use pointers to demonstrate dynamic binding.
8. Message Passing: Implement a program where two classes Sender and Receiver
communicate by passing messages through member functions.
9. Object-Oriented Concepts: Write a program to demonstrate the principles of object-
oriented programming (abstraction, encapsulation, inheritance, and polymorphism).
1. Deadline is final and will not be changed at all. Violation of deadline will award zero
marks in assignment.
2. Create/Copy/Get any C++ project that make use of classes, objects, inheritance, file
handling, exception handling, virtual function, STL etc.
3. Create a Video Presentation with PPT for the project and show the execution. The
video presentation must have your face visible while recording. Show execution
within the video presentation itself.
4. Upload the video on Youtube and share with me the URL on or before deadline.
5. Get your project topic registered/approved by Friday 31st May 4 PM with me to
avoid any rejection of selected project.