zoukankan      html  css  js  c++  java
  • 结构化程序设计与非结构化程序设计之分

    按照结构性质,有结构化程序设计与非结构化程序设计之分。

    前者是指具有结构性的程序设计方法与过程。

    它具有由基本结构构成复杂结构的层次性,后者反之。

    按照用户的要求,有过程式程序设计与非过程式程序设计之分。

    前者是指使用过程式程序设计语言的程序设计,后者指非过程式程序设计语言的程序设计。

    按照程序设计的成分性质,有顺序程序设计、 并发程序设计、并行程序设计、 分布式程序设计之分。

    按照程序设计风格,有 逻辑式程序设计、函数式程序设计、 对象式程序设计之分。

     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 }
  • 相关阅读:
    爬虫(五):生产者消费者方法
    三. Anagram detection problem for string(字符串中回文词汇检测问题)
    二. Object-Oriented Programming in Python: Defining Classes
    一.Introduction
    爬虫(四):正则表达式(提取str中网址)
    centos7源代码编译安装heartbeat
    linux yum配置
    java常见证书类型和密钥库类型
    常用的加密算法
    iptables学习理解
  • 原文地址:https://www.cnblogs.com/borter/p/9393727.html
Copyright © 2011-2022 走看看