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

what are the fundamental and common properties of .net controls?

1606


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

541


Explain the difference between state server and sqlserver : Dot net architecture

460


Explain the difference between primary & secondary storage device? : .NET Architecture

536


What is cache coherency and how is it eliminated? : .NET Architecture

530






What is gui programming? : .NET Architecture

511


Explain the five stages in a dlx pipeline? : Dot net architecture

492


how can we achieve language interoperability through CLS? How MSIL works?

607


How do I stop a thread?

543


Explain .net mobile automatic paging? : Microsoft dot net mobile

494


What is WPF and WCF?

578


8. Oop-Why and were we use Interfacse and Abstract class.

1593


How does .net mobile work? : Microsoft dot net mobile

511


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

539


Explain difference between machine config vs. Web config? : .NET Architecture

548