Monday, November 2, 2009

Assignment -(I)
Q1. (a) What do you understand by Function Overloading in C++? Explain with example.
(b) What is Unary Operator Overloading? Explain with example.
Q2. (a) Write short note on Inheritance and its types.
(b) Write a program in C++ to implement hierarchical inheritance.
Q3. (a) Write short note on container class and tokens.
(b) Write short note on the following with example (1) Private (2) Public
(3) Protected
****
8 marks

Q1. a. how is the access control thru derivation different from friendship?
b. how r ststic members different frm non static members?


Q.2 (a) What is an Object and how objects can be defined in C++?
(b) Compare early binding and late binding. When virtual functions are created for
implementing late binding what basic rule should be observed?
Q3. (a) What is a stream? Describe briefly the features of Input /Output stream supported
by C++.
(b) What is Inline function? Discuss the advantages and disadvantages of it.
Q4. (a) Write short note on Constructor & Destructor.
(b) Explain briefly about function prototype with examples.
5 marks question

Q1. Write a prog to implement a class complex wich overload +operator to add 2 complex numbers.
Q2. When does ambiguity arise in inheritence?
Q3. How r foll constructors difrnt frm one anoter?
a. Parameterised constructor.
b. Default constructor
c. constructor with default arguements.
Short question


Q1. Relate object and class in OOP.
Q2. Diff bet data type struct and data type class in C++.
Q3. Diff bet private and protected members.
Q4. What do destructors do? Is it necessary to hav destructor for a class.?
Q5. How can private members of a class be made inheritable?
Q6. What is a friend class? is it different from a friend function?