What are the advantages of inheritance?
Answer Posted / miss.purvi mota
using inheritance we can increase the reusability.As we can
use that functions whish we have maid earlier
| Is This Answer Correct ? | 69 Yes | 38 No |
Post New Answer View All Answers
What is interface? When and where is it used?
What is abstraction in oop?
What is oops with example?
What is object in oop with example?
What is inheritance write a program to show use of inheritance?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
what are the different types of qualifier in java?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What does enum stand for?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
What is object and class in oops?
How do you define a class in oop?
Where is pseudocode used?
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
Why is polymorphism important in oop?