|
-
Oct 18th, 2003, 01:28 PM
#1
Thread Starter
Hyperactive Member
When should we use 'Abstract class' in vb.net
I understood the concept of abstract class and also know how to implement in vb.net.
But in the real world what are the possible scenarios when we could be using the abstract classess. In my opinion if the class can't be instantiated (abstract class) what is the use of the template/abstract class?
Please share your thoughts .
thank you
nath
-
Oct 18th, 2003, 02:10 PM
#2
Addicted Member
take a look at this thread, posted several days ago >>
http://www.vbforums.com/showthread.p...hreadid=264281
-
Oct 18th, 2003, 02:33 PM
#3
Thread Starter
Hyperactive Member
sorry didn't understand those replies...
-
Oct 18th, 2003, 02:50 PM
#4
An abstract class is much like an interface and would be used in similar circumstances.
-
Oct 18th, 2003, 09:50 PM
#5
Thread Starter
Hyperactive Member
any example for abstract class?
Edniss,
thanks for the reply.
I have visited your website and you have written some wonderful code.
In the practical world do we use abstract classess at all?
if they are being used, could you please give me some examples?
thank you
nath
-
Oct 19th, 2003, 04:01 AM
#6
Try here: http://www.vbdotnetheaven.com/Code/Jun2003/2032.asp or here: http://archive.devx.com/dotnet/artic...1/pa110501.asp
Examples off of the top of my head are some plugin type systems or collectionbase type classes. I have used abstract classes in both of those scenerios. It primary use again is somewhat like Interfaces but you would use an abstract class when you want to also pass along some functionality along with the structure. For instance I made an extended collectionbase that handles datagrids better and does some things I also end up implementing in to my collections. It isn't intended to be used by itself but it is intended to be inherited and give a quick jump on extending another object. So you make it abstract and it can't be used unless it is married to another object.
-
Oct 20th, 2003, 01:38 PM
#7
Thread Starter
Hyperactive Member
thank you so much for the input
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|