What are the advantages of inheritance?
Answer Posted / masokis
1. reusability
2. maintainability
3. extensibility
4. realibility
it's the basic part :)
| Is This Answer Correct ? | 16 Yes | 1 No |
Post New Answer View All Answers
Write a program to reverse a string using recursive function?
What is abstraction example?
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.
What is polymorphism and its types?
What is the benefit of oop?
What is polymorphism and types?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
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
What is protected in oop?
What does it mean when someone says I oop?
Where is pseudocode used?
write a program to find 2^n+1 ?
How can you overcome the diamond problem in inheritance?
What is polymorphism what are the different types of polymorphism?
What are the two different types of polymorphism?