(a) What is inheritance? What are the different types of inheritance supported by C++ and explain them with examples. (16)
DefinitionSource quality review required
Anna University
| University | Anna University |
|---|---|
| Degree | B.E. Electrical and Electronics Engineering |
| Department | Electrical and Electronics Engineering |
| Regulation | Regulation 2008 |
| Semester | 2 |
| Subject Code | CS9152 |
| Subject Name | Object Oriented Programming |
| Exam Session | April / May 2012 |
| Duration | 3 Hours |
| Maximum Marks | 100 |
Access the previous year question paper for your examination preparation.
View / Download PDFBrowse other previous year question papers for this subject.
View All Subject Question PapersAutomatically extracted historical question data. Academic accuracy and examination rules require verification.
| Part | Required answers | Marks per answer | Section total |
|---|---|---|---|
| A | 10 | 2 | 20 |
| B | 5 | 16 | 80 |
Proportional to section marks. This estimate uses the full exam duration without a separate reading or revision reserve.
Detected alternatives only. Confirm the actual choice rules in the original question paper.
(a) What is inheritance? What are the different types of inheritance supported by C++ and explain them with examples. (16)
DefinitionSource quality review required
(b) Write short notes on the following: {i) Polymorphism (ii) Friend function {8+8)
Other Or UnclassifiedSource quality review required
(a) (i) Explain the overloading of the output operator (<<) with examples. {8) {ii) Write a-program to multiply two complex numbers by ovedoading *-operator. 48)
Other Or UnclassifiedSource quality review required
(b) Explain the concept of Function and class templates with-example. (19)
ExplanationSource quality review required
Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.