0% found this document useful (0 votes)
51 views1 page

Microsoft's Visual Studio: An Analogy

The document provides an analogy to explain object-oriented programming concepts like classes, objects, properties, methods, and events. It describes an Automobile class that has properties like color and number of doors. Individual auto objects are instances of the Automobile class that have their own property settings, like color. Methods of the class include start and stop, and events could be arrive or crash.

Uploaded by

AmmuKutty
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views1 page

Microsoft's Visual Studio: An Analogy

The document provides an analogy to explain object-oriented programming concepts like classes, objects, properties, methods, and events. It describes an Automobile class that has properties like color and number of doors. Individual auto objects are instances of the Automobile class that have their own property settings, like color. Methods of the class include start and stop, and events could be arrive or crash.

Uploaded by

AmmuKutty
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

An Analogy

If the concepts of classes, objects, properties, methods, and events are still a
little unclear, maybe an analogy will help. Consider an Automobile class.
When we say automobile, we are not referring to a particular auto, but we know
that an automobile has a make and model, a color, an engine, and a number of
doors. These elements are the properties of the Automobile class.
Each individual auto is an object, or an instance of the Automobile class.
Each Automobile object has its own settings for the available properties. For
example, each object has a Color property, such as MyAuto.Color _ Blue and
YourAuto.Color _ Red.
The methods, or actions, of the Automobile class might be Start,
SpeedUp, SlowDown, and Stop. To refer to the methods of a specific object of
the class, use MyAuto.Start and YourAuto.Stop.
The events of an Automobile class could be Arrive or Crash. In a VB program
you write procedures that specify the actions you want to take when a particular
event occurs for an object. For example, you might write a procedure for
the YourAuto.Crash event.
Note: Chapter 12 presents object-oriented programming in greater depth.

Microsofts Visual Studio


The latest version of Microsofts Visual Studio, called Visual Studio 2008,
includes Visual Basic, Visual C++, Visual C# (C sharp), and the .NET 3.5
Framework.
The .NET Framework
The programming languages in Visual Studio run in the .NET Framework. The
Framework provides for easier development of Web-based and Windows-based
applications, allows objects from different languages to operate together, and
standardizes how the languages refer to data and objects. Several third-party
vendors have announced or have released versions of other programming
languages
to run in the .NET Framework, including .NET versions of APL by Dyalog,
FORTRAN by Lahey Computer Systems, COBOL by Fujitsu Software
Corporation, Pascal by the Queensland University of Technology (free), PERL
by ActiveState, RPG by ASNA, and Java, known as IKVM.NET.
The .NET languages all compile to (are translated to) a common machine
language, called Microsoft Intermediate Language (MSIL). The MSIL code,
called managed code, runs in

You might also like