class base
{
public:
int fun(int)
{}
};
class base2
{
public:
int fun(float)
{
}
};
so here qustion is both function either function
overloading or over riding;
Answer Posted / sandeep mannarakkal
Over loading and overriding , both are performing in the same scope, here both functions have different scope.
So it is NOT overloading ,
NOT over riding.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
Why is main function important?
Is string an object in c++?
which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?
Explain about vectors in c ++?
Can I learn c++ as my first language?
how can i access a direct (absolute, not the offset) memory
address?
here is what i tried:
wrote a program that ask's for an address from the user,
creates a FAR pointer to that adress and shows it. then the
user can increment/decrement the value in that address by
pressing p(inc+) and m(dec-).
NOW, i compiled that program and opened it twice (in 2
different windows) and gave twice the same address to it.
now look what happen - if i change the value in
one "window" of the program, it DOES NOT change in the
other! even if they point to the same address in the memory!
here is the code snippet:
//------------------------------------------------------
#include On throwing an exception by the animal constructor in p = new animalq, can memory leak occur? What is c++ library? What character terminates all character array strings
a)
b) .
c) END Does dev c++ support c++ 11? What is singleton class in c++? Name the implicit member functions of a class. What is a modifier in c++? How to access a variable of the structure?