What is polymorphism in oops?
If the class is designed in such a way that the methods with same and with different parameters provided then the depending the input values each method gets executed as per the input provided and gives the appropriate output as given in each different method though has same name of the method in that class. Poly means many with similar, ..Having multiple input will get multiple methods gets multiple output, as given accordingly.
Is This Answer Correct ? | 0 Yes | 0 No |
What is abstraction with example?
char* ptr = "Rahul"; *ptr++; printf("%s",ptr); What will be the output
1.explicit call for destructor 2.calling function inside a constructor. 3.base *b-new derived delete b; 4.delete p what it will delete. 5.size of base class and derived class int i,in base class and int j in derived. 6.int i-20 int main() { int i =5; printf("%d".::i); { int i =10; printf("%d".::i); } } 7.object slicing 8.new 9.function overloading(return type). 10.class base() { virtuval fun() { ----- } } class derivied:public base() { fun() { ----- } } int main() { derived d; } 11.how static function will call in C++? 12.default structures are in C++? 13.constructors should be in public . 14.virtuval constructor not exist. 15.multilevel inhritence. destructor order.
write knight tour problem which is present in datastructure
Write a macro for swapping integers
what is virtual function?
26 Answers Aspire, HP, Infosys, RoboSoft, TCS,
which structured data type is not used in c++? 1.union 2.structure 3.string 4.boolean
What is the advantage of oop over procedural language?
Can an interface inherit a class?
What is balance factor?
What are the data types in oop?
explain dynamic binding by drowing