page115.html

来自「Data Structures And Algorithms With Obje」· HTML 代码 · 共 42 行

HTML
42
字号
<HTML><HEAD><TITLE>Abstract Objects and the __builtin__.object Class</TITLE></HEAD><BODY bgcolor="#FFFFFF"> <a href="../index.html" target="_top"><img src="../icons/usins.gif" alt="Logo" align=right></a><b>Data Structures and Algorithms with Object-Oriented Design Patterns in Python</b><br><A NAME="tex2html2540" HREF="page116.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="../icons/next_motif.gif"></A> <A NAME="tex2html2538" HREF="page113.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="../icons/up_motif.gif"></A> <A NAME="tex2html2532" HREF="page114.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="../icons/previous_motif.gif"></A>  <A NAME="tex2html2542" HREF="page611.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="../icons/index_motif.gif"></A> <BR><HR><H2><A NAME="SECTION005220000000000000000">Abstract Objects and the <tt>__builtin__</tt><tt>.object</tt> Class</A></H2><P><A NAME="secadtsobjects">&#160;</A><P>All Python classesare ultimately derived from the base class called <tt>object</tt><A NAME="tex2html197" HREF="footnode.html#4933"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/foot_motif.gif"></A>.The <tt>object</tt> class is defined in the Python <tt>__builtin__</tt> module.The following code fragment identifies some of the methodsdefined in the <tt>__builtin__</tt><tt>.object</tt> class<A NAME="tex2html198" HREF="footnode.html#4934"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/foot_motif.gif"></A>:<PRE>class object:    def __new__(...): ...    def __init__(...): ...    def __getattribute__(...): ...    def __setattr__(...): ...    def __delattr__(...): ...    def __hash__(...): ...    def __repr__(...): ...    def __str__(...): ...    ...</PRE><P><BR> <HR><UL> <LI> <A NAME="tex2html2543" HREF="page116.html#SECTION005221000000000000000">Abstract Objects</A><LI> <A NAME="tex2html2544" HREF="page117.html#SECTION005222000000000000000">Abstract Methods</A></UL><HR><A NAME="tex2html2540" HREF="page116.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="../icons/next_motif.gif"></A> <A NAME="tex2html2538" HREF="page113.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="../icons/up_motif.gif"></A> <A NAME="tex2html2532" HREF="page114.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="../icons/previous_motif.gif"></A>  <A NAME="tex2html2542" HREF="page611.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="../icons/index_motif.gif"></A> <P><ADDRESS><img src="../icons/bruno.gif" alt="Bruno" align=right><a href="../copyright.html">Copyright &#169; 2003</a> by <a href="../signature.html">Bruno R. Preiss, P.Eng.</a>  All rights reserved.</ADDRESS></BODY></HTML>

⌨️ 快捷键说明

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