2080 8

Object Oriented Programming20805 marksConcept of Virtual functions

What is the use of reinterpret cast operator? Why do we need virtual function?

What is the use of reinterpret cast operator? Why do we need virtual function? [5]

--- reinterpretcast is a cast operator in C++ that converts one pointer type to another pointer type, even if the types are unrelated. It forces the compiler to treat the bit pattern of one type as if it were another type entirely. As noted in the reference: "A cast operator is a special operator...

Up nextDifferentiate between concrete class and abstract class. Define class template and functio