Can we have inheritance without polymorphism?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More OOPS Interview Questions

What are constructors in oop?

0 Answers  


Templates mean

0 Answers  


suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?

3 Answers   EA Electronic Arts,


Is following functions are said to be overloaded? int add(int a,int b) char *add(int a,int b)

4 Answers  


Give two or more real cenario of virtual function and vertual object

0 Answers   TCS,






Why polymorphism is used in oops?

0 Answers  


What are the different forms of polymorphism??

8 Answers   Mantaq, NUC, PCS,


what is meant by files?

4 Answers   Infosys,


Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.

0 Answers  


What is overriding vs overloading?

0 Answers  


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

0 Answers  


How many types of access specifier in c# and vb.net?

1 Answers   Infosys,


Categories