PC Review


Reply
Thread Tools Rate Thread

How To Code in pure object oriented fashion in VB.NET

 
 
GMButler
Guest
Posts: n/a
 
      1st Sep 2003
When coding in any language in a pure object oriented
fashion, it is imperative that the language support
polymorphism, inheritance and encapsulation. How does
one completely encapsulate the data and behavior of a
VB.NET object such that the methods and properties are
executed or set by trapping messages that are sent as the
result of an event. No object should be directly
referenced from any other object (in other words, no
property of Object1 should be set from within Object2 or
no method of Object1 should be called from within
Object2). If I want to correct any object's bad behavior
(bug), I need only examine that object and no other. If I
want a property set for an object based upon some event
happening, I need only go to that object to discover what
messages(Collaborators in CRC parlance) it traps and the
methods it executes when that message is trapped. So, how
is this accomplished in VB.NET?
 
Reply With Quote
 
 
 
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      1st Sep 2003
GMButler,
All I can say is WOW! ;-)

"No object should be directly referenced from any other object"

Is going to be a tall order to fill. ;-) Considering objects calling methods
on other objects is the 'message passing' paradigm used in the .NET world.

You probably want to start with the documentation:

Visual Basic and Visual C#:
http://msdn.microsoft.com/library/de...tStartPage.asp

Visual Basic Language
http://msdn.microsoft.com/library/de...mingWithVB.asp

Visual Basic >NET Language Specification:
http://msdn.microsoft.com/library/de...bSpecStart.asp


Hope this helps
Jay

"GMButler" <(E-Mail Removed)> wrote in message
news:01ac01c370c5$775e8fe0$(E-Mail Removed)...
> When coding in any language in a pure object oriented
> fashion, it is imperative that the language support
> polymorphism, inheritance and encapsulation. How does
> one completely encapsulate the data and behavior of a
> VB.NET object such that the methods and properties are
> executed or set by trapping messages that are sent as the
> result of an event. No object should be directly
> referenced from any other object (in other words, no
> property of Object1 should be set from within Object2 or
> no method of Object1 should be called from within
> Object2). If I want to correct any object's bad behavior
> (bug), I need only examine that object and no other. If I
> want a property set for an object based upon some event
> happening, I need only go to that object to discover what
> messages(Collaborators in CRC parlance) it traps and the
> methods it executes when that message is trapped. So, how
> is this accomplished in VB.NET?



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Oriented vs Object Oriented Design Patrick Microsoft C# .NET 1 30th Jul 2005 11:23 AM
Access Object Dependencies should have an object-oriented map =?Utf-8?B?VGF5bG9yIE1lZWs=?= Microsoft Access Database Table Design 0 25th Feb 2005 04:43 PM
VB.NET and object-oriented ?? Julianna Microsoft VB .NET 6 26th Oct 2004 08:47 PM
VB.NET and object-oriented ?? Julianna Microsoft Dot NET 6 26th Oct 2004 08:47 PM
Object Oriented and COM+ Paulo Monteiro Microsoft Dot NET Framework 1 21st Oct 2003 11:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:19 AM.