The sixth week of gains

1.java learning and inner class definition, and the use of the local class.

     Members of the inner class, is a member of or access to the private property of the outer class.

     According courses Case:

China class {public
// private attributes outer class
Private int = 13 is A;
// inner class SiChuan
public SiChuan {class
member variables within the class //
Double B = 0.8;
public void Show () {
// access outside the class a
System.out.println ( "China has a" + a + "million");
// accessed inside the class b
System.out.println ( "Sichuan" + b + "million");
}
}
// test for membership internal class
public static void main (String [] args) {
// create the external object, the object name C
China China new new C = ();
// external object using the class object to create an internal object name is D
SiChuan D = SiChuan c.new ();
// call the class object inside show () method
d.show ();
}
}

2.html re-learn the semantic tags, CSS basics, plus seven selector

In this week's study, we learned a lot of knowledge, and know, learning programming requires a lot of practice before they can find more questions and learn more knowledge

3. java plans to continue in-depth study of abstract classes and polymorphism in the next week.

 

Guess you like

Origin www.cnblogs.com/1234yyf/p/11333128.html