Difference between abstract class and interface

Answer Posted / niraj kumar

)We define an Interface in the Java application with a
set of abstract methods without any implementation. Which
means all the methods of an interface are by default
abstract methods and public methods.
2)Once an Interface is defined in the application then any
class can implement that interface, in such case the class
must be implemented with all the mehtods of the respective
Interface otherwise the class will become as abstract class.
3)A class can implement any no. of interfaces, in such case
the class must be implimented with all the methods of those
interfaces otherwise the class will become as abstract class

Is This Answer Correct ?    17 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

So what exactly is the configuration file for then?

561


Explain about generation?

573


What is .net mobile images control. : Microsoft dot net mobile

497


What is password attribute of the textbox control of .net mobile? : Microsoft dot net mobile

471


Is .net easier than java?

528






what is sessions and cookies take one example simple way to understand

1860


State the different levels of exceptional safety?

573


I am working with asp.net 2005 and Crystal report 10. I have an image field on my dataset to show on Crystal report.And the image is shows dynamically from database in image field of CR. The image field is showing well on my Crystal report on its first page with all other data but when i click to open second page of CR,it does not show any data on that.I found that this is because of adding the image field on crystal report. Because when i remove the image field from the CR then it will run both the pages of CR. I am using the Page Load event to bind CR data with Database. And i have already check with the Init event to bind CR , but it still not shows the data on second page when i use image field on that. Please give solution for that.....

1476


Explain hard disk and what is its purpose? : Dot net architecture

521


How can we perform data binding in atlas?

525


Explain pipelining? : .NET Architecture

552


Describe the Managed Execution Process in .NET?

541


12. Types of polymorphisem[Run and Design Exp.]

1652


HttpHendler and HttpModules

1694


Explain the purpose of cache? : Dot net architecture

479