- 雙語版Java程序設計
- 何月順主編
- 229字
- 2018-12-27 20:14:08
1.3 Evolution of ‘C’ Based Programming Languages
In 1960s structured programming language was born. This method of programming can be supported by some languages like C. By using this structured language, moderately complex programs can be completed fairly easy. However, even with such a structured programming method, once a project reaches a certain size, its complexity will be far beyond the scope of what a programmer can manage. By the early 1980s, many projects were pushing the structured approach past its limits .To solve this problem, a new method of programming came out. This approach is object-oriented programming. Object-oriented programming can solve complex program based on inheritance, encapsulation, and polymorphism.
In the final analysis, although C is one of the world’s great programming languages, there are some deficiencies such as weaker capability to handle complexity. Once program codes exceed more than 25,000 lines of code, it becomes so complex that it is difficult to control as a totality. OOP programming overcomes this obstacle and manages larger programs.
面向過程編程的缺陷:當程序規模增大時候,復雜度也隨之增加,程序員無法控制所寫的代碼。而面向對象編程可以克服這個缺陷。