⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.html

📁 一些JAVA的小程序
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><html><head><title>Object-Oriented Programming Concepts</title><script language="JavaScript"><!-- hidefunction openWin(term) {  url="../../information/glossary.html#" + term;  myWin= window.open(url, "Glossary",              "width=400,height=150,scrollbars=yes,status=no,toolbar=no,menubar=no");  myWin.focus();}//--></script><STYLE type="text/css"><!--.FigureCaption   { margin-left: 1in; margin-right: 1in; font-family: Arial, Helvetica, sans-serif; font-size: smaller; text-align: justify }--></STYLE> </head><body BGCOLOR="#ffffff" LINK="#000099"><B><FONT SIZE="-1">The Java</font><sup><font size="-2">TM</font></sup> <font size="-1">Tutorial</FONT></B><br><table width="550" summary="layout"><tr><td align="left" valign="middle"><a href="../index.html" target="_top"><img src="../../images/PreviousArrow.gif" width="26" height="26" align="middle" border="0" alt="Previous Page"></a><a href="../TOC.html#concepts" target="_top"><img src="../../images/TOCIcon.gif" width="26" height="26" align="middle" border="0" alt="Lesson Contents"></a><a href="object.html" target="_top"><img src="../../images/NextArrow.gif" width="26" height="26" align="middle" border="0" alt="Next Page"></a></td><td align="center" valign="middle"><font size="-1"><a href="../../index.html" target="_top">Start of Tutorial</a>&gt;<a href="../index.html" target="_top">Start of Trail</a></font></td><td align="right" valign="middle"><font size="-1"><a href="../../search.html" target="_top">Search</a><br><a href="http://developer.sun.com/contact/tutorial_feedback.jsp">Feedback Form</a></font></td></tr></table><img src="../../images/blueline.gif" width="550" height="8" ALIGN="BOTTOM" ALT=""><br><font size="-1"><b>Trail</b>: Learning the Java Language</font><h2>Lesson: Object-Oriented Programming Concepts</h2><blockquote><blockquote> <hr> <strong>This chapter has been updated to reflect features and conventions of the latest release, JDK 5.0.  If you notice any errors or omissions (or something you really like), please <a href="http://developer.sun.com/contact/tutorial_feedback.jsp" target="_top"><b>tell us</b></a>. </strong> <hr> </blockquote>If you've never used an object-oriented language before, you need to understand the underlying concepts before beginning to write code. You need to know what an object is, what a class is, how objects and classes are related, and how objects communicate by using messages.The first few sections of this chapter describe the concepts behind object-oriented programming. The last section shows how these concepts translate into code.</blockquote><h3><a target="_top" href="object.html">What Is an Object?</a><a target="_top" href="object.html"><img src="../../images/tutorialIcon.gif" width=11 height=11 border=0 align="MIDDLE" alt=" (in the Learning the Java Language trail)"></a></h3><blockquote>An object is a software bundle of related variables and methods.Software objects are often used to model real-world objects you find in everyday life.</blockquote><h3><a target="_top" href="message.html">What Is a Message?</a><a target="_top" href="message.html"><img src="../../images/tutorialIcon.gif" width=11 height=11 border=0 align="MIDDLE" alt=" (in the Learning the Java Language trail)"></a></h3><blockquote>Software objects interact and communicate with each other using messages.</blockquote><h3><a target="_top" href="class.html">What Is a Class?</a><a target="_top" href="class.html"><img src="../../images/tutorialIcon.gif" width=11 height=11 border=0 align="MIDDLE" alt=" (in the Learning the Java Language trail)"></a></h3><blockquote>A class is a blueprint or prototype that definesthe variables and the methods common to all objects of a certain kind.</blockquote><h3><a target="_top" href="inheritance.html">What Is Inheritance?</a><a target="_top" href="inheritance.html"><img src="../../images/tutorialIcon.gif" width=11 height=11 border=0 align="MIDDLE" alt=" (in the Learning the Java Language trail)"></a></h3><blockquote>A class inherits state and behavior from its superclass. Inheritanceprovides a powerful and natural mechanism for organizing and structuringsoftware programs.</blockquote><h3><a target="_top" href="interface.html">What Is an Interface?</a><a target="_top" href="interface.html"><img src="../../images/tutorialIcon.gif" width=11 height=11 border=0 align="MIDDLE" alt=" (in the Learning the Java Language trail)"></a></h3><blockquote>An interface is a contract in the formof a collection of method and constant declarations.When a class implements an interface,it promises to implementall of the methods declared in that interface.</blockquote><h3><a target="_top" href="practical.html">How Do These Concepts Translate into Code?</a><a target="_top" href="practical.html"><img src="../../images/tutorialIcon.gif" width=11 height=11 border=0 align="MIDDLE" alt=" (in the Learning the Java Language trail)"></a></h3><blockquote>This section looks at a small applet,and shows you the code that creates objects,implements classes,sends messages,establishes a superclass,and implements an interface.</blockquote><h3><a target="_top" href="QandE/questions.html">Questions and Exercises: Object-Oriented Concepts</a><a target="_top" href="QandE/questions.html"><img src="../../images/tutorialIcon.gif" width=11 height=11 border=0 align="MIDDLE" alt=" (in the Learning the Java Language trail)"></a></h3><blockquote>Test your understanding of objects, classes, messages, and so onby doing some exercises and answering some questions.</blockquote></blockquote><img src="../../images/blueline.gif" width="550" height="8" ALIGN="BOTTOM" ALT=""><br><table width="550" summary="layout"><tr><td align="left" valign="middle"><a href="../index.html" target="_top"><img src="../../images/PreviousArrow.gif" width="26" height="26" align="middle" border="0" alt="Previous Page"></a><a href="../TOC.html#concepts" target="_top"><img src="../../images/TOCIcon.gif" width="26" height="26" align="middle" border="0" alt="Lesson Contents"></a><a href="object.html" target="_top"><img src="../../images/NextArrow.gif" width="26" height="26" align="middle" border="0" alt="Next Page"></a></td><td align="center" valign="middle"><font size="-1"><a href="../../index.html" target="_top">Start of Tutorial</a>&gt;<a href="../index.html" target="_top">Start of Trail</a></font></td><td align="right" valign="middle"><font size="-1"><a href="../../search.html" target="_top">Search</a><br><a href="http://developer.sun.com/contact/tutorial_feedback.jsp">Feedback Form</a></font></td></tr></table><p><font size="-1"><a href="../../information/copyright.html">Copyright</a>1995-2005 Sun Microsystems, Inc.  All rights reserved.</font></p></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -