July 8, 2021 in C and CPP
How is polymorphism achieved at run time? Explain with coding.
c) How is polymorphism achieved at run time? Explain with coding.
July 8, 2021 in C and CPP
c) How is polymorphism achieved at run time? Explain with coding.
July 8, 2021 in C and CPP
b) Distinguish between overloaded functions and function templates.
July 8, 2021 in C and CPP
a) What are friend functions and friend classes? Write a normal function which adds
objects of the complex number class. Declare this normal function as friend of the
complex class.
July 8, 2021 in C and CPP
c) Write a program that illustrates the application of multiple catch statements.
July 8, 2021 in C and CPP
b) What is an exception? How is an exception handled in C++?
July 8, 2021 in C and CPP
a) Explain why do we need to use constructors? Explain a copy constructor with an
example.
July 8, 2021 in C and CPP
b) What is a pointer? Explain the difference between the address stored in a pointer and
the value at that address.
July 8, 2021 in C and CPP
a) What is operator overloading? Illustrate operator overloading concept to concatenate
strings.
July 8, 2021 in C and CPP
c) What is the main advantage of passing arguments by reference? Explain this with an
example.