Click here to load reader
Upload
ujjwal-mahajan
View
213
Download
0
Embed Size (px)
DESCRIPTION
a
Citation preview
7/17/2019 Assignment I
http://slidepdf.com/reader/full/assignment-i-568f508cd7aba 1/1
OOPs Using C++ INFO – 113
Assignment -1 28-Aug-2015
Q1. What is Object Oriented Programming? How is it different from the procedure oriented
programming? (5)
Q2. Distinguish between the following terms: (5)
a.
Objects and classes
b.
Data abstraction and data encapsulation
c.
Inheritance and Polymorphism
d.
Constructor and Destructor
Q3. Explain Pointers to members in C++ with suitable example? How we can declare a class member
pointer? (5)
Q4. What are the different types of inheritance used in C++? Explain with proper syntax in C++? (5)
Q5. (a.)Write a C++ program to show the stack and queue implementation? (10)
(b.) Write a C++ program to show inheritance as per the following hierarchy: (10)
Shape Base class
Rectangle Derived class of Shape
Triangle Derived class of Shape
Sphere Derived class of Shape
main() should show the following menu:
1. Rectangle
2. Triangle
3. Sphere
3. Exit.
(Enter choice:_)
A function AREA() should be made to calculate the area of the chosen shape and will be shown as
output? You need to specify the compilation process with its output?