Assignment C++ Programming
Assignment C++ Programming
Department of B.C.A.
3. What are the use of constructor and destructor in C++ program? Explain with suitable example.
4. What do mean by static keyword? Explain static variable and static member functions. Write a
program to input the marks and find out the average of students using static data member.
5. Write a program to demonstrate the default initialization of the constructor member function of
class objects of the student’s information system such as name, roll no., sex, weight and height.
7. Write a program to compare two complex number using operators overloading on == operator.
9. What is inheritance? What are different types of inheritance? Explain different form of
inheritance.
10. Write a program to show the single inheritance in two the classes and its appropriate function to
show the value of its member data.
11. What do you understand by virtual function, virtual class and abstract class? Discuss with
example.
a) Encapsulation
b) Inheritance
c) Polymorphism
d) Class and objects
e) Friend function
f) Abstract class
g) Access specifier