Answer Posted / poorna chandar rao
diffrence bettwen the abstract class and interfaces
abstract class is having abstarct methods and concrete
methods abstarct class as compulosry having subclass for the
implementation abstarct methods and abstarct does not
support multiple inheritence
because one subclass extend the abstract class their is no
scope for extends for another class because it is not
support for the multiple inheritence
ex 1: abstract class one
2 class two extends one extend three (not valid)
but interface having only method signature in the interface
their is concrete method and it supports the multiple
inhirtence because
ex: interface one
class two implements one extends three(valid)
onc class implemens the interface and extends to another
class that is support the multiple inhertince
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is pure oop?
Can static class have constructor?
What is polymorphism used for?
Why do we need polymorphism in c#?
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.
How do you answer polymorphism?
What is new keyword in oops?
Why do we need oop?
What is protected in oop?
What is pointer in oop?
What does it mean when someone says I oop?
What is the oops and benefits of oops programming?
How do you achieve polymorphism?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What are functions in oop?