What is the differances between a abstract calss and
interface

Answer Posted / gyan

abstract class may contain concreate methods with abstract
methods where as interface containls only abstract methods

by default all methods in interface are public
where as abstract class can contain all modifiers except
private


abstract class involves in inheriting chain . where as
interfaces there is no need to follow inherit chain

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is loosely coupled solution? How it can be used?

568


Why should i prefer JSP over asp.net or any other web development language..??

1449


How to retrieve user name in case of Window Authentication?

282


What can you do with asp.net?

519


Where you store Connection string in "Web.Config" file in ASP.NET?

588






Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?

529


What is autopost?

532


What is the use of autowireup in asp.net?

566


Explain how to prepare culture-specific formatting in .net.

538


What is break mode?

517


What is syntax code to send email from an asp.net application?

536


What is a Cookie? Where is it used in ASP.NET?

615


To get the values in two different controls to match which control you use it?

539


What are the server control tags in asp.net.?

628


How can I open ashx file in mobile?

626