Answer Posted / rabih
two functions with same but different signature
example let take function name test return int and take a
parameter of type int (int test(int x))
let take same function of name test with different
signature void test(int x) or int test(bool n) or
int test(int x,string y)
all these functions can written in same class without any
error this means same function name(test)
different signature is deffernet return type or different
paraemeter type
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the data types in oop?
what are the ways in which a constructors can be called?
What is the types of inheritance?
What are the 5 oop principles?
What is difference between multiple inheritance and multilevel inheritance?
What is object in oop with example?
What is the important feature of inheritance?
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?
Why is oop useful?
What are the advantages of polymorphism?
What is abstract class in oops?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What is basic concept of oop?
Why do we use inheritance?
What is class and object in oops?