Академический Документы
Профессиональный Документы
Культура Документы
UC14BC203
Max Marks: 50
a)
b)
c)
a)
b)
Describe how base class member functions can be invoked in a derived class if
the derived class also has a member function with the same name.
Explain how to define and access constructors in derived classes.
c)
3
a)
1+1+
3
1+3
Room(int value=8)
{ width=height=8;}
b)
void display()
{ cout<<width<<""<<height; }
};
int main()
{
Room objroom;
objroom.display();
return 0;
}
Define a class String. Use overloaded == operator to compare two strings.
4.
a)
10
5.
a)
Account on Virtual base class. Write a program to prepare the student mark list
that implements hybrid inheritance and virtual base class.
2+8