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
Category: Software and Web Development
Tags: object-oriented
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.
- 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
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
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
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
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
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?
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
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
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
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
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
Featured white papers
-
The Value of Location Intelligence in the Communications Industry
Public Services are under pressure, the challenge is to do more with less. How do you improve citizen satisfaction, increase cost efficiencies and improve service delivery? The power of location intelligence is helping many local authorities...
-
Best Practices for Translating Customer Satisfaction into Revenue
Today's support organisations are focused on two top-level metrics: financial results and customer satisfaction. For most, it's easy to track financial performance, but customer satisfaction is akin to speaking a foreign language...
-
HP print solutions and 3M
The objective for 3M was to optimize office printing infrastructure at 3M locations worldwide, reduce total cost and environmental footprint. Some of the business benefits acheived by switching to HP print solutions...
-
Check out these top business apps for your iPhone
-
Inside a Microsoft datacentre
-
Green IT without losing your edge
-
Peter Cochrane's latest video blog
-
What you need to know about Windows 7