White Papers

Working With Objects in F#: Learn How to Use Common Object-Oriented Techniques in F# so That Various Shapes Know How to Calculate Their Own Perimeter

Overview There are times though when one wants to extend the kind of shapes they are working with. What about triangles, hexagons or arbitrary polygons, for instance? While it is possible to enumerate these as special forms on a Shape type like one did in the first implementation, having to incorporate the perimeter logic into a single place is not ideal. Instead, one wants to switch to a more traditional OO approach where the various shapes "Know" how to calculate their own perimeter. This paper shows how to use primary object-oriented techniques from languages such as C# and VB: implementation by inheritance and by interfaces. It also covers F#-specific object-oriented features such as object expressions, constructed classes, and named and optional arguments.

Download White Paper

By downloading you agree to our Terms and Conditions. These include information regarding use of your personal data.

Publisher
Jupitermedia
File Format
HTML
Date Published
Nov 30, 2008
Format
White Papers
Topics
Object-Oriented, Programming Languages

Similiar White Papers

Why and How to Build a Continuous Integration Environment for the .NET Platform

Why and How to Build a Continuous Integration Environment for the .NET Platform

This paper is a learning tool and also a detailed manual to reference for executives, managers and developers on 'Why an

Publisher: Enterprise Solution Providers  |  Tags: developers

Step-by-Step Guide to Building Shapes in Visio 2003 ShapeStudio

Step-by-Step Guide to Building Shapes in Visio 2003 ShapeStudio

ShapeStudio is a shape-development tool included in the Microsoft Office Visio 2003 SDK, providing a work environment th

Publisher: Microsoft  |  Tags: microsoft office, office, sdk, visio

A Data-Centric Approach to Distributed Application Architecture

A Data-Centric Approach to Distributed Application Architecture

Application architects design distributed applications based largely on their computing resources and network infrastruc

Publisher: Jupitermedia  |  Tags: applications, computing, data, infrastructure, network, network infrastructure, object-oriented

UML Basics: The Class Diagram

UML Basics: The Class Diagram

Structure diagrams show the static structure of the system being modeled focusing on the elements of a system, irrespect

Publisher: IBM

ActionScript 3.0 Design Patterns: Decorator Pattern

ActionScript 3.0 Design Patterns: Decorator Pattern

The Decorator pattern addresses the issue of maintaining the structure while having the ability to make changes by decor

Publisher: O'Reilly Media

Jupitermedia White Papers

ITIL and the CMDB: Think Small?

ITIL and the CMDB: Think Small?

The concept of the Configuration Management DataBase (CMDB) is not exceedingly difficult to comprehend, particularly as

Publisher: Jupitermedia  |  Tags: data, itil

How to Create a Custom Policy Injection Application Block Handler

How to Create a Custom Policy Injection Application Block Handler

As part of Enterprise Library, the Policy Injection Application Block lets a developer control the behavior of the appli

Publisher: Jupitermedia  |  Tags: applications

ClickOnce: Delivering .NET Applications Via the Net

ClickOnce: Delivering .NET Applications Via the Net

From the simplest point of view, ClickOnce is a software technology from Microsoft that gives .NET developers the abilit

Publisher: Jupitermedia  |  Tags: applications, data, developers, server, software

Programming Serial Ports Using Visual Basic 2005

Programming Serial Ports Using Visual Basic 2005

This paper shows how to use the SerialPort control in .NET 2.0 for the serial communication needs. In particular, it wil

Publisher: Jupitermedia  |  Tags: bluetooth

A Data-Centric Approach to Distributed Application Architecture

A Data-Centric Approach to Distributed Application Architecture

Application architects design distributed applications based largely on their computing resources and network infrastruc

Publisher: Jupitermedia  |  Tags: applications, computing, data, infrastructure, network, network infrastructure, object-oriented