What Is a Polymorphism? How many types of polymorphism and
whats that use in application?
Answer Posted / khan
Poly mean many mphorm mean form, polymorphism mean use an entity in many forms. there are two types of polymorphism
1. Static Polymorphism
2. Dynamic Polymorphism
1. Static polymorphism is also called as Compile Time polymorphism. In Static polymorphism methods are overloaded with same name but having different signatures.So it is called as method overloading.
2.Dynamic polymorphism is also called as Run Time polymorphism. In this type of polymorphism methods have the same name, same signature but different in the implementation.
In Dynamic polymorphism methods are overridden so it also called as method overriding.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Which language is not a true object oriented programming language?
This program numbers the lines found in a text file. Write a program that reads text from a file and outputs each line preceded by a line number. Print the line number right-adjusted in a field of 3 spaces. Follow the line number with a colon, then one space, then the text of the line. You should get a character at a time and write code to ignore leading blanks on each line. You may assume that the lines are short enough to fit within a line on the screen. Otherwise, allow default printer or screen output behavior if the line is too long (i.e., wrap or truncate). A somewhat harder version determines the number of spaces needed in the field for the line numbers by counting lines before processing the lines of the file. This version of the program should insert a new line after the last complete word that will fit within a 72-character line.
State what is encapsulation and friend function?
Whats oop mean?
What is polymorphism give a real life example?
Can static class have constructor?
2. Give the different notations for the class.\
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
Why is polymorphism needed?
What is the full form of oops?
can we make game by using c
Is html an oop?
write a C++ program for booking using constructor and destructor.
What is the benefit of oop?
Which method cannot be overridden?