`
张长平
  • 浏览: 12915 次
  • 性别: Icon_minigender_1
  • 来自: 河北
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

2-25 this

 
阅读更多
public class lcc {
        int x,y;
        lcc (int a,int b)
        {
        x=a;
        y=b;
        }
       lcc ()
       {
       this(1,1);

       }
        void output()
        {
        System.out.println(x);
            System.out.println(y);
            }
        void output(int x,int y)
        { this.x=x;
        this.y=y;
        }
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
{
lcc pt;
pt=new lcc();
       //pt=new lcc(0,0);
      // pt.x=10;
       //pt.y=10;
       pt.output();
}

}
定义静态的 PI 只能在 开始的时候 初始化
非静态 都可以


JAVA

不允许多继承 只允许单继承
分享到:
评论

相关推荐

    dwl-g122 b1 c1

    Date: 2008/04/25 Fix: 15. Update DWL-G122.C1 2000XP & 98ME WHQL driver to Version 1.03.00.0000. 16. Update DWL-G122.C1 Vistax86 WHQL driver to Version 3.01.03.0000. -----------------------------------...

    ZPanel-v25免费虚拟主机管理系统

    2 . CHMOD the zpanel directory to 777 (on *nix) ... Give the directory everything except for "Full Control" (Windows-IIS) ... Skip this step if you're on Windows with Apache. 3 . Go to ...

    aria2-1.34.0.tar.7z解决了github下载的原版文件在linux中make报错问题一共解决了两个问题

    --------bignum.h:34:25: error: ‘make_unique’ was not declared in this scope inline ulong() : buf_(make_unique[]>(dim)) {} --------------这个问题 以及一个是是关于 /* libc already has support */ ...

    delphi2-delphi2010 全支持 dcu 装换 pas

    This project is in very early stage, no document yet. To see some features, reference my test cases file -- test.pas and the output file test.int, please. The output maybe more clear organised than ...

    MULTIGIG RT 2, RT 2-R, and RT 3 Signal Connectors .pdf

    This specification covers the requirements for application of MULTIGIG RT 2, RT 2-R, and RT 3 connectors used to interconnect printed circuit (pc) boards. RT 2 and RT 2-R connectors are compliant to ...

    saeJ1979_2006-08-25Ballot

    This document supersedes SAE J1979 APR2002, and is technically equivalent to ISO ...minor reorganisation of Paragraphs 1 and 2, and modifications and additions as noted in Section 1.2 of this document.

    CSerialPort串口类更新版2014-01-10

    ** PURPOSE This class can read, write and watch one serial port. ** It sends messages to its owner when something happends on the port ** The class creates a thread for reading and ...

    Learning Ionic 2 - Second Edition

    English | 4 May 2017 | ASIN: B01BGV25GS | 378 Pages | AZW3 | 10.51 MB Create real-time hybrid applications with the leader of HTML5 frameworks: Ionic Framework About This Book Step into the world ...

    saeJ1979_2006-08-25Ballot_j1979_15031_SAEJ1979_5to1_

    5:2006 except forminor reorganisation of Paragraphs 1 and 2 and modifications and additions as noted in Section 1.2 of thisdocument.

    Cow Cycling

    1------1-------5------5------25 2------1-------2------7-------4 3------2*------4------11-----16 4------2-------2------13------4 5------3*------3------16------9 6------3-------2------18------4 7-...

    linux libxml2-2.6.26

    XML toolkit from the GNOME project Full documentation is available on-line at ... This code is released under the MIT Licence see the Copyright file....$Id: README,v 1.13 2005/07/10 21:38:25 veillard Exp $

    Don’t hire a software developer until you read this book, 2nd Edition

    Don’t hire a software developer until you read this book By 作者: K.N. Kukoyi ISBN-10 书号: 1539188191 ISBN-13 书号: 9781539188193 Edition 版本: 1 出版日期: 2017-05-26 ...CHAPTER 25 Life after Launch

    hadoop-2.2.0-x64.tar.gz part2

    hadoop-2.2.0 64bit下载,自己编译的 [INFO] Reactor Summary: ...This command was run using /home/hadoop/Desktop/hadoop-2.2.0-src/hadoop-dist/target/hadoop-2.2.0/share/hadoop/common/hadoop-common-2.2.0.jar

    C++大学教程

    1.21 有关对象的思考---------------------------------------------------25 小结------------------------------------------------------------------27 术语---------------------------------------------...

    RAD Studio XE7 Install Key&Patch

    ENLA-BA25GN-NBJ2CE-M3NN LNLA-BBAM2N-JGN43E-MBNN HNLA-P544PP-JEEJM4-MGNN HNLA-4CP52P-2FM2CD-MPNN 2) Patch bds.exe using XE7patch.exe (LicenseManager.exe will also be patched) 3) Delete any ....

    MDK程序下载----FLM文件.pdf

    November 2014 22 * $Revision: V1.00 23 * 24 * Project: Flash Programming Functions for ST STM32L0xx Flash 25 * --------------------------------------------------------------------------- */ 26 27 /* ...

    FFmpeg-full-SDK-3.2

    ffmpeg -i input.avi -threads 2 -vcodec libx264 -b 500K -bufsize 500K -minrate 500K -maxrate 500K -rc_eq "blurCplx^(1-qComp)" -qmin 2 -qmax 51 output.mp4 Addins: 1) how to make a mp4 streamable with ...

    pcf8563_i2c1_r8_ruoge_ov2640通过给RTC驱动增加设备节点读取秒钟成功+直接读取I2C1获取秒钟值20160626_2201.7z

    /* This is the structure as used in the I2C_RDWR ioctl call */ struct i2c_rdwr_ioctl_data { struct i2c_msg __user *msgs; /* pointers to i2c_msgs */ __u32 nmsgs; /* number of i2c_msgs */ }; ...

    DELL C1100(CS24-TY)最新BIOS(S99C3B25)和BMC(1.86)

    socflash cs=2 option=fc if=firm.bin skip=0x200 The firm.bin is now in the same directory as socflash.exe. Now you should be right after the BIOS Update from above. Go to your BMC directory -> ...

    grub4dos-V0.4.6a-2017-02-04更新

    2016-03-25(yaya) 菜单字符可以使用不同字型。 例如:"七" 使用不同字型,将 .hex 文件中的 unicode 码 “4e03” 修改为 “0080”, 将菜单中的 "七" 修改为 “\X0080”。 2016-03-23(yaya) 增强 echo ...

Global site tag (gtag.js) - Google Analytics