许多人将高阶程序语言分为两类
许多人将高阶程序语言分为两类: 编译型语言 和直译型语言。
然而,实际上,这些语言中的大多数既可用编译型实现也可用直译型实现,分类实际上反映的是那种语言常见的实现方式。
(但是,某些直译型语言,很难用编译型实现。比如那些允许 在线代码更改 的直译型语言。)
1 package Com.Table; 2 3 public class NineTable { 4 String Country; 5 String Identifiy; 6 String City; 7 String Street; 8 String Stamp; 9 public void setCountry(String country) { 10 Country = country; 11 } 12 public void setIdentifiy(String identifiy) { 13 Identifiy = identifiy; 14 } 15 public void setCity(String city) { 16 City = city; 17 } 18 public void setStreet(String street) { 19 Street = street; 20 } 21 public void setStamp(String stamp) { 22 Stamp = stamp; 23 } 24 public String getCountry() { 25 return Country; 26 } 27 public String getIdentifiy() { 28 return Identifiy; 29 } 30 public String getCity() { 31 return City; 32 } 33 public String getStreet() { 34 return Street; 35 } 36 public String getStamp() { 37 return Stamp; 38 } 39 public static void main(String []args) 40 { 41 NineTable address = new NineTable(); 42 address.setCountry("China"); 43 address.setIdentifiy("Student"); 44 address.setCity("Beijing"); 45 address.setStreet("Green"); 46 address.setStamp("80080"); 47 48 System.out.println("Address:" + 49 address.getCountry() + "_" + 50 address.getIdentifiy() + "_" + 51 address.getCity() + "_" + 52 address.getStreet() + "_" + 53 address.getStamp()); 54 } 55 }