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

described weak typing?

0 Answers  


What is the difference between Dataset and Recordset?

7 Answers   IG, Silicon,


Explain how to store decimal data in .net?

0 Answers  


How do you rate yourself in .NET ?

3 Answers   Infosys, Seneca Global,


What do you mean by deserialization?

0 Answers  






What is the difference between vb 6 and vb.net?

0 Answers  


How many languages are supported by .net?

0 Answers  


What is econo-jit?

0 Answers  


diff b/w windows and console application?

4 Answers  


hi dear ? MY problem is that i m developing software for Library. and i want to connect a third party software with my VB.net program in order to calculate DDC number.I dont know how to do this if any body can help me please?

1 Answers  


What is static member?

0 Answers  


Write a program that would find the nth term of a geometric progression, given the value of first term and common ratio. Any inbuilt function that the language provides for calculating exponent should not be used.

0 Answers  


Categories