Ics 2104 Object Oriented Programming I
Ics 2104 Object Oriented Programming I
QUESTION THREE
(a) Explain the purpose of the following concept in object
oriented programming
(i) Ambiguity resolution
(ii) Virtual base class
(iii) File pointer
(b) Explain the error in the following C++ CODE [3
marks]
}
Int main (void)
{
Cout<<max (1,2.2):
}
QUESTION FIVE
(a) Explain public, private and protected access specifiers
and show their visibili9ty when they are inherited as public,
private and protected [8 marks]
(b) Explain the following terms [3 marks]
(i) Iostream
(ii) Ifstream
(iii) Fstrasm
(c) Outline the benefits of data abstraction [4 marks]
(d) Describe the following type of program execution [4
marks]