Assignment
Assignment
.
Assignment: 2
1. Explain user defined function with example.
2. Explain default argument & constant argument.
3. Explain Call By Value and Call By Reference with example.
4. Explain inline function with example.
5. Explain function prototype.
6. Explain function overloading with suitable example.
7. Explain structure with example.
8. Explain class with example.
9. Give the difference between structure & class.
10. Explain member function definition with example.
11. Explain static data member with characteristic with example.
12. Explain static member function with example.
13. Explain friend function with characteristic & example.
14. Write a program to find the area of circle and perimeter using inline function.
15. Write a program to add two distances in kilometer & meter using object as argument.
16. Write a program to add two complex number.
17. Create a class named “Book” which has following members: Data member: book_name,
author_name, pages, price. Member function: insertbookdata( ), displaybookdata( ).
Write a program to insert and display the records of 3 books.
Assignment: 3
1. Explain constructor with characteristic & example.
2. Explain parameterized constructor with example.
3. Explain copy constructor with example.
4. Explain destructor with characteristics with example.
5. Give the difference between constructor & destructor.
6. Give the difference between constructor & simple member function.
Assignment: 4
1. Explain inheritance with its type.
2. Explain single level inheritance with Program, definition, and figure.
3. Explain multilevel inheritance with Program, definition, and figure.
4. Explain multiple inheritances with Program, definition, and figure.
5. Explain hierarchical inheritance with Program, definition, and figure.
6. Explain Derived Class In Inheritance.
7. Explain Virtual Base class With Example.
8. Explain Hybrid Inheritance with Program, Figure, and definition.
9. Explain Abstract Class.
10. Explain Inheritance of constructor with example.
11. Explain access modifiers of class.
OR
Explain private, public and protected keyword.
Assignment: 5
1. Define pointer with syntax and example.
2. Explain pointer to object with example.
3. Explain this pointer with example.
4. Explain pointer to derived class with pointer.
5. Explain virtual function with example and rules.
6. Explain pure virtual function with example.
Assignment: 6
1. Define stream with types.
2. Explain c++ stream class in details.
3. Explain following function with example
Get()
Put()
Getline()
Write()
Width()
Precision()
Fill()
4. Setf()Explain following manipulator wit example.
Setw()
Setfill()
Setprecision()
Setiosflag()
Resetiosflag()
5. Explain user define manipulator with example.