devonmanelski.com |
  |
Home | I.T. Management | Business Analysis & Project Management | VB.Net | SQL Server | About | |
A Class is an encapsulation of Data and Methods. The Data is stored in Properties of the Class. The Methods operate on the Data stored in the Properties of the Class in combination with the Data that is passed as Arguments to the Methods of the Class. An Object is a specific instance of a Class which can be used to Set and Get the Value of the Object's Properties as well as call the methods of the Object.
For example,
An Object Model is a Conceptual Model that is similar to a Database Entity-Relationship Model. In this Conceptual Model, a Domain is defined, and within the scope of that Domain, specific entities are identified and made into Classes; so that the Software Application has a complete set of interacting objects that can fully meet the functional requirements of the software application.
For example, for the Domain of Car Manufacturing, a Software Developer may define the following parts of the Object Model.
Properties are Data Elements of a Class which are used to describe the specific implementation (or instance) of the Class when it is used within the software application. The Data Properties of a Class can be set to a Value and accessed as specified within the Class.
For example,
Methods are Procedures of a Class that perform an operation. The Methods of a Class are Function Procedures and Sub Procedures. The Names of the Procedures and the Arguments that are passed into, and returned by the Procedure, makeup the Interface of the Class.
A Class Event is a Sub Procedure that is automatically called when a specific Event is triggered in the Event Driven Model of the .Net Framework, i.e. when a specific Button Control is clicked.
The New Event is a Sub Procedure that is part of every Class which is automatically called when the Object Variable is set to a new instance of the Class. The Finalize Event is a Sub Procedure that is also part of every Class which is also automatically called when the Object Variable is set to Nothing.
A Class Interface is made up of the Names of the Class Properties, the Names of the Class Methods and the Arguments that are passed into and returned from the Class Methods. The Data Type of the Arguments are part of the Class Interface. Class Interfaces define the ways in which Objects and Components communicate with each other and establish the foundation for interoperability. Interfaces are also used to define Class Hierarchies when using Inheritance in the Object Model.