Partial preview of the text
Download Object orianted programming language and more Lecture notes Object Oriented Programming in PDF only on Docsity!
Page-1 Chapter: 1 Introduction to OOP 41.1 Introduction Traditional programming language such as COBOL, FORTRAN etc. are known procedure oriented language. Programs written in these languages had some disadvantages like the length of code was difficult to manage. Another main problem was related to data security. In general the conventional pragramming language had the following disadvantages: > Data was not secure as data passes globally from one function lo another function globally. > The length of the code became so large that It was difficult to manage. 4.2Programming Paradigms Generally following programming paradigms are frequently used: i. Monolithic Programming: In this approach, data variables were global In nature. The statements were executed in sequence. However, the control can be transferred using JUMP statements as per the requirement. Main problem was that data was not secure due to its global scope. It was suitable for smallar application as concept of subroutines was not possible. >» Example: BASIC, ASSEMBLY vw ey ll. Procedural Programming: In this method, the program was divided Into number of segments. Here also, the dala was not secure as once again the data was global. For control of program, again JUMP statements were used, It was useful for medium sized applications. Ex: FORTRAN, COBOL vY¥ vw lil, Structured Programming: > [twas useful for large sized applications. Er, Swarnalata Rath, M.Tech, KIT Page 2