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

Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form. What is the exact procedure. : Dot net architecture

726


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

1812


What is cookie less session?

752


I can't be bothered with cas. Can I turn it off?

697


Whats new features in Visual Studio 2012?

718


Do you know textbox and textview controls of .net mobile? : Microsoft dot net mobile

701


When do I need to use gc.keepalive?

832


What re interop services?

754


What is an asssembly qualified name? Is it a filename? How is it different?

690


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

1473


.Net Frame work arch?

1789


How to develop mobile applications using microsoft mobile internet toolkit (mmit) or .net mobile? : Microsoft dot net mobile

688


What are end points, contract, address and bindings?

699


What is .net mobile utility controls. Explain with an example? : Microsoft dot net mobile

635


which is the institute in hyderabad for providing the live project industry training

2526