21.07.2013 Views

Learning Technology FrameWork.pdf

Learning Technology FrameWork.pdf

Learning Technology FrameWork.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Creating attributes<br />

Creating attributes<br />

Attributes Attributes are named, structural components of a class. Each<br />

attribute represents a property that provides more detail about the<br />

objects in the class. An attribute has a <strong>FrameWork</strong> type of integer<br />

or string, depending on which tool you use to create it.<br />

Lesson 6: Adding More Detail to Your Java Classes<br />

92<br />

You’ll now want to provide some details for the Person class in your<br />

Java class diagram. The Applicant and Employee subclasses will<br />

inherit these attributes. You’ll want to capture details like home<br />

phone number, social security number, address, and others.<br />

What you do To create attributes for the Person class:<br />

1 Open the Employee Hiring Classes diagram if it’s not open<br />

already.<br />

2 In the common toolbar, select the String Attribute tool.<br />

3 Click and hold on the Person class. Then drag from Person and<br />

release the mouse button to place the graphic.<br />

4 Name the attribute home area code. Then click on the window<br />

background to close the edit box.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!