请把以下内容翻译成中文:
OOP was invented because procedural languages, such as C, Pascal, and BASIC, were found to be inadequate for large and complex programs. Why was this?
The problems have to do with the overall organization of the program. Procedural programs are organized by dividing the code into functions (called procedures or subroutines in some languages). Groups of functions could form larger units called modules or files. Crude Organizational Units One difficulty with this kind of function-based organization was that it focused on functions at the expense of data. There weren’t many options when it came to data。
点点赞赏,手留余香
给TA打赏
评论0