# 計算機概論出題
D1149371 林鈺凱
章節:chap 6 程式語言
中文版本
---
下列程式碼屬於何種設計類型的程式語言?
```cpp=
class List{
node *top;
public:
List();
protected:
void push(int);
int pop();
};
```
A) 程序式
B) 函數式
C) 宣告式
D) 物件導向式
Ans: D)
英文版本
---
The following code belongs to which type of design of the programming language?
```cpp=
class List{
node *top;
public:
List();
protected:
void push(int);
int pop();
};
```
A) procedural
B) functional
C) declaration
D) object-oriented
Ans: D)