What are different types of polymorphism supported by C++
Answers were Sorted based on User's Feedback
Answer / ammu
polymorphism occurs in 2 levels one at compile time and
another at run time
compile time polymorphism includes function overloading and
operator overloading
run time polymorphism includes virtual function
Is This Answer Correct ? | 21 Yes | 3 No |
Answer / minakshi
runtime polymorphism
1.function overloading
2,operator overloading
compile time
1.virtual function
Is This Answer Correct ? | 7 Yes | 18 No |
What are containers in c++?
Write about a nested class and mention its use?
Write a program and call it sortcheck.cpp which receives 10 numbers from input and checks whether these numbers are in ascending order or not. You are not allowed to use arrays. You should not define more than three variables
What do nonglobal variables default to a) auto b) register c) static
What is the difference between set and map in c++?
Is oops and c++ same?
Is c++ platform dependent?
what is scupper?
What is setiosflags c++?
What is math h in c++?
There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?