結構化程序設計與非結構化程序設計之分


按照結構性質,有結構化程序設計與非結構化程序設計之分。

前者是指具有結構性的程序設計方法與過程。

它具有由基本結構構成復雜結構的層次性,后者反之。

按照用戶的要求,有過程式程序設計與非過程式程序設計之分。

前者是指使用過程式程序設計語言的程序設計,后者指非過程式程序設計語言的程序設計。

按照程序設計的成分性質,有順序程序設計、 並發程序設計、並行程序設計、 分布式程序設計之分。

按照程序設計風格,有 邏輯式程序設計、函數式程序設計、 對象式程序設計之分。

 

 

 1 package Com.TableTest;
 2 
 3 
 4 public class TableText_21 {
 5     public static void main(String[] args)  {
 6         Shapesx shapes = new Circlesx();
 7         System.out.println(shapes.name);
 8         shapes.printType();
 9         shapes.printName();
10     }
11 }
12  
13 class Shapesx {
14     public String name = "shape";
15      
16     public Shapesx(){
17         System.out.println("shape constructor");
18     }
19      
20     public void printType() {
21         System.out.println("this is shape");
22     }
23      
24     public static void printName() {
25         System.out.println("shape");
26     }
27 }
28  
29 class Circlesx extends Shapesx {
30     public String name = "circle";
31      
32     public Circlesx() {
33         System.out.println("circle constructor");
34     }
35      
36     public void printType() {
37         System.out.println("this is circle");
38     }
39      
40     public static void printName() {
41         System.out.println("circle");
42     }
43 }

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM