Where would you use Abstract class and Interface?

Answers were Sorted based on User's Feedback



Where would you use Abstract class and Interface?..

Answer / vijay

You can offer the best of both worlds, an interface and an
abstract class. Implementors can ignore your abstract class
if they choose. The only drawback of doing that is calling
methods via their interface name is slightly slower than
calling them via their abstract class name.

Is This Answer Correct ?    7 Yes 1 No

Where would you use Abstract class and Interface?..

Answer / chitresh

Interface is use where we known that all these functions
which are declared in interface is implemented somewhere if
we call that interface.and we can use abstract class where
we don't known how it is implemented in call function.

Is This Answer Correct ?    5 Yes 1 No

Where would you use Abstract class and Interface?..

Answer / mayank bhatnagar

Interface includes just the definition of methods whereas
Abstract Classes are just like classes and hold all
functionality of classes except certain features.
The only difference between Abstarct Classes and Interfaces
is the use.Abstract Classes were introduced becoz of
diamond problem in C,C++.You can only inherit these classes
but cannot instantiate(i.e. no object of these classes can
be created, there can be one or more methods abstact in
such classes).
Interfaces are public and can be used/inherited by multiple
classes which was not before possible.

Is This Answer Correct ?    3 Yes 2 No

Where would you use Abstract class and Interface?..

Answer / bala

nothing to say....

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More VB.NET Interview Questions

Which is the base class for all the classes in .net framework?

0 Answers  


What is the DIfference between Friend and Protected Friend?

6 Answers   CTS, Sykes Enterprises, TCS,


what are Fixed memory leaks and threads locking problems.

1 Answers  


sql satement for 2nd maximum value

15 Answers   NIIT,


List the types of authentication?

0 Answers  


What is the difference between convert.tostring and i.tostring method?

0 Answers  


Explain how can we remove handlers at run time?

0 Answers  


What is a static class?

0 Answers  


I Am Developing A project where I can send Message from One Computer to Another Computer With The Help Of LAN.Already I Have developed..It is working Fine With The Details Of ..TO,FROM,REF No,DATE,BODY...Now I Want To Add Attachments part in the same projects...How Can I Send Attachment File & How To Send It..I Am Working in VB.Net 2005 With out Any database. Can Any One Help me ??How To Write Code??Plz Send me a copy to my Mail also...I Dont Need Any Software Available in The Internet...Plz refer me The Code in VB.Net maloy.adhikari@in.com

0 Answers  


Which control is an example of an object in vb net?

0 Answers  


what is vb,net

1 Answers   ME,


What is the Difference between Overriding and overloading?

31 Answers   Subex, TCS,


Categories