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
How many human genes are polymorphic?
What is abstraction in oops with example?
What is coupling in oop?
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
What is static modifier?
write a program to find 2^n+1 ?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
What is inheritance and how many types of inheritance?
What is a class in oop?
How do you use inheritance in unity?
Why multiple inheritance is not possible?
What is overloading in oops?
What is use of overloading?
What is abstraction encapsulation?