Understanding O.O.P. Documentation in .Net

By David M. Woods
Published October 13, 2006, 1:47 pm in Software.

Reference section

The final section of this article is a reference of as many objects, members, and modifiers I can think of, showing both their C# and VB equivalents.

OBJECTS

NameDefinition
Project part of current open Solution
Assembly compiled API package containing usable objects
Namespace group of classes and other objects
class encapsulation of data and behavior
interface skeleton class containing signatures only
structure like a class, but does not support inheritance
enum assigns names to a group of constant values
delegate pointer to a method; used for event handling



MEMBERS

* = no applicable keyword in C#; the presense of parens ( ) distiguishes a method.

C# VB definition
( ) * function( ) / sub( ) method
* property / dim property or variable
event event condition that invokes a specified method
const const constant



MODIFIERS

C# VB definition
public public can be invoked externally
private/internal/protectedprivate/friend/protected canNOT be invoked externally
void sub method does NOT return a value
type function...as method DOES return a value
static shared class instantiation not required
[get] readonly property is read-only
abstract MustInherit/MustOverride must be inherited / over-written
sealed NotInheritable/NotOverridablecanNOT be inherited / over-written
virtual Overridable can be inherited / over-written



Conclusion

This article has just been an basic introduction to writing programs in .Net using the .Net framework and/or classes or objects written by others. Obviously, there is much more to OOP. This article barely touched on topics such as inheritance, polymorphism, interfaces, delegates, events, enumerators, and more. Then of course, there's the entire subject of writing classes!

OOP is a big topic that brings power to programmers that previous generations could only dream of. The downside is that OOP takes a long time to master. But hopefully, the information contained herein has broken down some barriers and helped it all to make a little more sense.

Pages: 1 2 3 4 5

You're viewing a selection from Technology.

You may subscribe to Entries (RSS) and Comments (RSS).