Oops Part B (II)
Oops Part B (II)
Sub. Code / Sub. Name Academic Year Batch : CS59 /Object Oriented Programming : 2011 -2012(Odd Semester) : 2009-2013
Unit II Part B
Type conversion
Define basic to class type conversion with an example. Define class to basic type conversion with an example. Define one class to another class conversion with an example.
Templates
Explain the Function template Explain the Class template
Inheritance
What are the different forms of inheritance supported in C++? Discuss on the visibility of base class members in privately and publicly inherited classes.
What are the virtual functions? Explain their needs using a suitable example. What are the rules associated with virtual functions? Explain virtual functions with an example. What are abstract classes? Give an example (with the program) to illustrate the use of abstract classes. Describe virtual class and virtual functions.