Programming in C++
Programming in C++
in
H-94-21 Roll No. ....................... ANNUAL (c) Write a C++ program to demonstrate return by
reference.
Note : Attempt any two parts from each unit. All questions
Unit-IV
carry equal marks.
4. (a) Explain the pointer to object with example.
Unit-I
1. (a) What is OOP ? Write the appllication of OOP. (b) What is inheritance ? Write a C++ program to
demonstrate multiple inheritances.
(b) Discuss the constants and variables of C++ in detail.
(c) Discuss the access specifiers in brief.
(c) Write a C++ program to demonstrate switch state
ment.
Unit-V
Unit-II 5. (a) Describe the pure virtual function with example. (b)
2. (a) Define structure. Explain how to access structure
member with example. Write a C++ program to overload binary operator. (c)
(b) Describe how to access constant to a function with Explain the friend function with example.
example.
[2]
✪✪✪✪✪ c ✪✪✪✪✪
MasterProgramming.in
P. T. O. H-94/21 2 / 50