What is the difference between and interface and an
abstract class ?
Answer Posted / sathish kumar.t
ABSTRACT CLASS Interface
It consist of Static It consist of non- static member
member variables variables
It consist of non-abstract It consist of only abstract
and abstract methods methods
it consist of private and It consist of public classes
protected classes
It uses the keyword Extends uses the keyword Inplements
If subclass extends the If the subclass implements
abstact class, cannot extend interface, can implement any
any other class number of interfaces
| Is This Answer Correct ? | 19 Yes | 23 No |
Post New Answer View All Answers
Write a program to reverse a string using recursive function?
What is difference between polymorphism and inheritance?
#include
Why is oop better than procedural?
Why is encapsulation used?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
Which type does string inherit from?
Which is not an object oriented programming language?
What is debug class?what is trace class? What differences are between them? With examples.
What is property in oops?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
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 to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
Can you explain polymorphism?
Can we define a class within the interface?