What is the differances between a abstract calss and
interface
Answer Posted / maria alex
An abstract class holds both method prototpypes and method
definitions also...But it is not in the case of
interface..It can contain only protypes.. It should be
defined only where it is implemented...
| Is This Answer Correct ? | 20 Yes | 3 No |
Post New Answer View All Answers
What is encapsulation with example?
How do you use inheritance in unity?
Is react oop?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What is inheritance in simple words?
What are two types of polymorphism?
What is the difference between static polymorphism and dynamic polymorphism?
Why do we use class in oops?
Advantage and disadvantage of routing in telecom sector
What does and I oop mean?
What are the advantages of polymorphism?
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 is polymorphism and its types?