Answer Posted / mostafa zedan
Overriding - same method names with same arguments and same
return types associated in a class and its subclass.
Overloading - same method name with different arguments,
may or may not be same return type written in the same
class itself.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is static in oop?
Explain virtual inheritance?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
When not to use object oriented programming?
What is overriding in oops?
What is encapsulation in oops?
what are the ways in which a constructors can be called?
What is overloading in oop?
What is destructor example?
What are the benefits of oop?
What is object in oop?
What causes polymorphism?
What is polymorphism oop?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?