Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1
three classes should have a function to get its data from the user
and a function to display the data on the screen. Write complete
code to test the functionality of all the classes.
5. a. What do you mean by compile time polymorphism and run-time 8
polymorphism? Give an example for function overloading.
b. Write a program to overload * and + operators such that two 7
objects of a complex class (i. e. a class to represent complex
numbers) can be multiplied and added.
6. a. What is virtual function? Explain about Deferred method with a 8
simple example.
b. Create a template class to find the scalar product of vector of 7
integers and vector of floating point numbers.
7. Write short notes on (Any Two): 2×5
a. Message passing
b. CRC cards
c. STL