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.
面向过程编程的缺陷:当程序规模增大时候,复杂度也随之增加,程序员无法控制所写的代码。而面向对象编程可以克服这个缺陷。