SIR PADAMPAT SINGHANIA UNIVERSITY
SCHOOL OF ENGINEERING, UDAIPUR
COURSE: PROGRAMMING WITH C++
LAST DATE OF SUBMISSION: May 10, 2008
ASSIGNMENT 2
1. What is inheritance? Explain all the five types of Inheritance in detail.
2. What is Virtual Base Class? Explain with suitable exaple.
!. What is the or"ani#ation of constructors in Inheritance? Explain with
suitable exaple.
$. What is %unction &verloadin"? Explain with suitable exaple.
'. What is operator overloadin"? Explain the echanis of operator function
usin" the concept of non static eber function or friend function.
(. Explain with exaple overloadin" of binary and unary operators.
). Write short notes on
a* +bstract Class
b* ,ocal Class
c* -ew and .elete &perator
d* /ype Conversion
e* Call by Value v0s Call by 1eference
f* Inline %unction
"* Const 2eber %unction
h* 3cope 1esolution &perator
i* 1eference variable