7.22 ~ 7.28 weekly summary

This week study are as follows:

1.java learning to inherit the class

Use Java to write a simple student class, and inherits the basic information to the management class, student output

. 1  Package test sample volume before the Java language classes;
 2  
. 3  public  class Student {
 . 4      // Student ID 
. 5      Private String stunumber;  
 . 6      // name 
. 7      Private String name;       
 . 8      // Age 
. 9      Private  int Age;           
 10      // gender 
. 11      Private  Boolean Sex;       
 12 is      // score 
13 is      Private  Double score;    
 14      
15      public String getStunumber () {  
16          return saving umber;
17      }
 18      public  void setStunumber (String saving umber) {
 19          this .stunumber = saving umber;
20      }
 21      public String getName () {
 22          return name;
23      }
 24      public  void setName (String name) {
 25          this .name = name;
26      }
 27      public  int getAge () {
 28          return age;
29      }
 30      public void setAge(int age) {
31         this.age = age;
32     }
33     public boolean isSex() {
34         return sex;
35     }
36     public void setSex(boolean sex) {
37         this.sex = sex;
38     }
39     public double getScore() {
40         return score;
41     }
42     public void setScore(double score) {
43 is          the this .score = Score;
 44 is      }
 45      public  void Show () {
 46 is          System.out.println ( "student number:" + stunumber + "Student Name:" + name + "Student Age:" + age + "Student Gender:" + sex + "student score:" + score);
 47      }
 48      public  static  void main (String [] args) {
 49          student = S new new student ();
 50          s.stunumber = "20,183,547" ;
 51 is          s.name = "Li four " ;
 52 is          s.age = 21 is ;
 53 is          s.score = 88 ;
54         s.sex=false;
55         s.show();
56     
57 }
58 }
. 1          Package test sample volume before the Java language classes;
 2          
. 3          public  class StudentManage the extends Student {
 . 4              public  void showStudent () {
 . 5                  System.out.println ( "student number:" + the this .getStunumber () + "\ n-" + "student name:" + the this .getName () + "\ the n-" + "age of the students:" + the this .getAge () + "\ the n-" + "student sex:" + the this .isSex () + "\ the n-" + "students score:" + the this .getScore () + "\ the n-" );
 6             }
 7         public static void main(String[] args) { 
 8             StudentManage s=new StudentManage();
 9             s.setStunumber("20183547");
10             s.setName("李海");
11             s.setAge(18);
12             s.setSex(false);
13             s.setScore(92);
14             s.showStudent();
15         }
16         }
17   

First, in the first code is a kind of operating results

Student number: 20183547 Student Name: John Doe Student Age: 21 Gender student: false Student Score: 88.0   

Inheritance second code in a Student class, output is:

Student number: 20183547
Student Name: Lee
Student Age: 18
Students Gender: false
Student Score: 92.0

 

2. Make the Basics of HTML and HTML with a simple production of a web page

Source

This is a simple web page about a small qing "back" is written in HTML5, because there is no learning css, publishing some of the problems.

 1 <!DOCTYPE html>
 2 <html>
 3 <head>
 4     <title>背影</title>
 5 </head>
 6 <body>
 7     <h1 align=center><abbr title="朱自清"><strong>背影</strong></abbr></h1>
 8     <a href= "https://www.sogou.com/link?url=DOb0bgH2eKjRiy6S-EyBciCDFRTZxEJgUQ81x8xlFrFIK9ahPqNmMK4n6CzQFaekCp414gmlB45TOsIDOJYxmynODNKZ0sXW" target = _blank > qing </ A >  < br > 
. 9      < HR > 
10  < blockquote > 
. 11      < P > 
12 is    I and < EM > father </ EM > do not meet more than two years already, and I can never forget his back. That winter, my grandmother died, also relinquish his father's errand, and Misfortunes never come singly, I left Beijing for Xuzhou to join father in the funeral home. Met father in Xuzhou, the sight of the full House mess, the thought of grandma started tears trickling down tears. Father said, "things have been so, not be too sad day must be a way!"
 13      </ the p- > 
14      <the p- > 
15    home sell mortgages, but also the father shortfall; and to borrow money to do a funeral. These days, the family was very bleak circumstances, for half funeral, father 's unemployment. After the funeral, the father go to Nanjing to look for a job, I was to return to Beijing to study, we started out together.
16      </ the p- > 
17  < the p- >   
18      day in Nanjing, have friends around to hanging around, ferrying day; the next morning and would have to cross the river to Pukou, on the train to the north in the afternoon. Father said he was too busy to see me off hand in hand, ask a hotel waiter to accompany a familiar go with me. He repeatedly asked the waiter, very carefully. But he finally worried, afraid waiter inappropriate posts; hesitated for quite a while. In fact, I was twenty years old that year, Beijing had traveled two or three times, is no matter at all. He hesitated for a while, and finally decided to send me to myself. I tried to talk him out of it; he only said, "Never mind, they go bad!"
 19  </ the p- > 
20  < the p- > 
21    we had a river, entered the station. I buy a ticket, he saw to my luggage. Too much baggage, to get the porter fee, before in the past. He blamed them busy and bargain. I was really smart too, he spoke I felt pretty much non-interrupted not himself. But he finally words when the bargain; send me on the train. He gave me picked out of a chair by the door; he gave me my purple fur coat paved the seat. He told me to be careful on the road, night alert not to catch cold. He also asked the waiter to take good care of me. I laughed within herself his literal-minded; they only know the money entrusted to them straight white and asked my age who do not look after himself. Well, now I think about it, I really was too smart!?!
 22 </ The p- > 
23  < the p- > 
24-    I said, "Dad, you go." He looked outside the car looked and said, "I bought some tangerines. You're here, do not walk around." I watch the outer edge of the platform fence there are several vendors waiting for customers. Come to that platform would require crossing the railway track climbing up and down. Father was a fat man, walking past some trouble naturally. I had to go, he would not have to let him go. I saw him wearing a black skullcap, black cloth jacket and dark blue cloth Gua, hobbled to the railway track and slowly leaned down, not disaster. But he was crossing the railway track to climb up that platform is not easy. He climbs above with both hands, feet and then shrink up; his fat body tilting to the left, showing the semblance of effort. Then I saw his back, my tears flow down quickly. I quickly wiped them away, afraid he saw, but also afraid of being seen. When I looked out, he has been holding bright red tangerines back away. Crossing the railway track, he first orange scattered on the ground, climbed down slowly, then picked oranges go. When the side, I hurried out to help him. He and I went to the car, the children will fall on my orange fur coat. So scarred dirt on the clothes, he looked somewhat relieved, after a while said, "I go; letter to the other side!" I watched him go. He took a few steps, looked back at me and said, "Go back to your seat.", Who mixed his back coming and going in, find vain, I will come in to sit down, my tears came again a.
25  </ P > 
26 is  < P > 
27   In recent years, my father and I have been traveling all circumstances of our family to worse. His youth go to work, alone supports, done a lot of great things. Laojing know that it is so deserting! He caught the attention of sad, natural intelligence not their own. Yu in love, naturally want to send is to the outside; trivial family would often make him angry. He treated me became less. But the last two years gone, he finally forget my bad, just thinking of me, thinking about my son. After I arrived in Beijing, he wrote a letter to me, the letter said, "I'm all right except arm pain interested, give chopsticks pick up a pen, a lot of inconvenience, some go to the big stage not far from the truth." I read here in the glistening tears, he saw that obesity, blue cloth Gua, black cloth jacket back. Alas! I do not know when to be able to meet with him!
 28  </ the p- > 
29  </ blockquote > 
30  < HR > 
31  < img src = "http://pic.ruiwen.com/allimg/170526/1FG05Y2-0 .jpg? X = Process-OSS-style / qr.ruiwen " width = 500 height = 500 the usemap =" Map # "  > 
32   < Map name =" Map " >
 area shape="DOb0bgH2eKjRiy6S-EyBciCDFRTZxEJgUQ81x8xlFrFIK9ahPqNmMK4n6CzQFaekCp414gmlB45TOsIDOJYxmynODNKZ0sXW" coords="0,0,250,250" href="http://www.ruiwen.com/wenxue/zhuziqing/332811.html" alt="背影"
34   </map>
35 </body>
36 </html>

FIG effect as

Click the picture to the upper left quarter of the image can open a web page about the "back", and click to open the Sogou author qing qing about Wikipedia.

For the students this week to add Java classes, delete, modify the problem is not resolved, for next week to solve the problem.

Next week to learn css and applied to HTML.

 

Guess you like

Origin www.cnblogs.com/cxy0210/p/11246435.html