Java job Seven (2017-10-30)

Source: Internet
Author: User

1 /*making People*/2  Public classTman {3      Public intID;4      PublicString name;5      Public intAge ;6      PublicString City;7      PublicString introduce () {8       return+ ID + ": Name:" + name + ", Age:" + Age + ", add:" +City ;9     }Ten}
1  Public classMan {2 3      Public Static voidMain (string[] args) {4         //TODO auto-generated Method Stub5Tman p1=NewTman ();6Tman p2=NewTman ();7Tman p3=NewTman ();8Tman p4=NewTman ();9p1.id=250;   P1.name= "Supreme Treasure";   p1.age=25; P1.city= "Huaguoshan";Tenp2.id=250;    P2.name= "Purple Chardonnay";   p2.age=19; p2.city= "ala-Light Divine ding"; Onep3.id=250;    P3.name= "Green Xia";   p3.age=19; p3.city= "ala-Light Divine ding"; Ap4.id=250;    P4.name= "Tang priest";   p4.age=43; P4.city= "Spider web Cave"; - System.out.println (P1.introduce ()); - System.out.println (P2.introduce ()); the System.out.println (P3.introduce ()); - System.out.println (P4.introduce ()); -     } -  +}

Java job Seven (2017-10-30)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.