Difference between abstract class and interface

Answer Posted / tevendra singh pardhi(balaghat

Abstract Class:
(1)it contains both abstract methods and non abstract
methods
(2) object can't be created just through reference we are
calling all the methods
(3) it is implemented by subclass i.e which class is
extended from this
abstract class contains only nonabstract this situation
also code will compile fine but problem at runtime
abstract can't be declared with Final Synchronized Native
just your requirements you implement some methods in the
abstract class
this class also contain Constructor


Interface contains all abstract methods
all methods compulsory implemented by particular class
interface does not contain Constructor

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can u give me real example of how web.config overrides the machine.config file?

1284


So what exactly is the configuration file for then?

553


What is .net viewstate?

492


What is Opf3

582


Explain about generation?

563






Explain the difference between l1 and l2 cache? : .NET Architecture

549


What is a service class?

533


What is cache coherency and how is it eliminated? : Dot net architecture

497


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

454


Explain dma? : Dot net architecture

550


What are the options provived by vss to the user? how it will help us while delevoping application?

1749


What is a managed code? : Dot net architecture

547


Explain difference between state server and sqlserver? : .NET Architecture

529


What is msil, and why should my developers need an appreciation of it if at all?

531


How resource files are used in .net?

542