// API callback
av({"version":"1.0","encoding":"UTF-8","entry":{"xmlns":"http://www.w3.org/2005/Atom","xmlns$blogger":"http://schemas.google.com/blogger/2008","xmlns$georss":"http://www.georss.org/georss","xmlns$gd":"http://schemas.google.com/g/2005","xmlns$thr":"http://purl.org/syndication/thread/1.0","id":{"$t":"tag:blogger.com,1999:blog-9163537232404844123.post-3283894068127569251"},"published":{"$t":"2021-03-31T09:21:00.010+05:30"},"updated":{"$t":"2021-03-31T09:23:35.376+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"Java OOPs"}],"title":{"type":"text","$t":"Difference Between Structured Programming and Object Oriented Programming"},"content":{"type":"html","$t":"\u003Ch3 style=\"text-align: center;\"\u003E\u003Cdiv class=\"separator\" style=\"clear: both; text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhG7TbSLTXgLwU8If5gWezFapSpgNZZ21tByRuMXp66rl7PzJSd-vGeXzgnoMJgUu1PdMb7qcMIcQ1uCYsx53nuM1yjezBH0IMqOMEv-AJHBy4NiD57x-L7ddxTZ1qkb06LtUhkZQiM_xTT\/s864\/OOP+vs+Procedure.JPG\" style=\"margin-left: 1em; margin-right: 1em;\"\u003E\u003Cimg alt=\"Structured Programming, Object Oriented Programming, Oracle Java Exam Prep, Oracle Java Preparation, Oracle Java Guides\" border=\"0\" data-original-height=\"330\" data-original-width=\"864\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhG7TbSLTXgLwU8If5gWezFapSpgNZZ21tByRuMXp66rl7PzJSd-vGeXzgnoMJgUu1PdMb7qcMIcQ1uCYsx53nuM1yjezBH0IMqOMEv-AJHBy4NiD57x-L7ddxTZ1qkb06LtUhkZQiM_xTT\/s16000\/OOP+vs+Procedure.JPG\" title=\"Difference Between Structured Programming and Object Oriented Programming\" \/\u003E\u003C\/a\u003E\u003C\/div\u003E\u003C\/h3\u003E\u003Ch3 style=\"text-align: left;\"\u003E\u003Cb\u003EStructured Programming vs Object Oriented Programming\u003C\/b\u003E\u003C\/h3\u003E\u003Cp\u003EObject Oriented Programming (OOP) and Structured Programming are two programming paradigms. A programming paradigm is a fundamental style of computer programming. Programming paradigms differ in how each element of the programs is represented and how steps are defined for solving problems. As the name suggests, OOP focuses on representing problems using real-world objects and their behavior, while Structured Programming deals with organizing the program in a logical structure.\u003C\/p\u003E\u003Ch3 style=\"text-align: left;\"\u003E\u003Cb\u003EWhat is Structured Programming?\u003C\/b\u003E\u003C\/h3\u003E\u003Cp\u003EIt is assumed that the birth year of Structured Programming is 1970. Structured programming is considered a subset of imperative programming. A structured program is made up of simple program flow structures, which are hierarchically organized. They are sequence, selection and repetition. Sequence is an order of statements. Selection means selecting a statement from a set of statements based on the current state of the program (for e.g. using if statements) and repetition means executing a statement until a certain state is reached (for e.g. using for or while statements). ALGOL, Pascal, Ada and PL\/I are some of the structured programming languages used today.\u003C\/p\u003E\u003Ch3 style=\"text-align: left;\"\u003E\u003Cb\u003EWhat is Object Oriented Programming?\u003C\/b\u003E\u003C\/h3\u003E\u003Cp\u003EIn OOP, the focus is on thinking about the problem to be solved in terms of real-world elements and representing the problem in terms of objects and their behavior. Classes depict the abstract representations of real world objects. Classes are like blueprints or templates, which gather similar items or things that can be grouped together. Classes have properties called attributes. Attributes are implemented as global and instance variables. Methods in the classes represent or define the behavior of these classes. Methods and attributes of classes are called the members of the class. An instance of a class is called an object. Therefore, an object is a data structure that closely resembles some real-world object.\u003C\/p\u003E\u003Cp\u003EThere are several important OOP concepts such as Data abstraction, Encapsulation, Polymorphism, Messaging, Modularity and Inheritance. Typically, encapsulation is achieved by making the attributes private, while creating public methods that can be used to access those attributes. Inheritance allows the user to extend classes (called sub classes) from other classes (called super classes). Polymorphism allows the programmer to substitute an object of a class in place of an object of its super class. Typically, the nouns found in the problem definition directly become classes in the program. And similarly, verbs become methods. Some of the most popular OOP languages are Java and C#.\u003C\/p\u003E\u003Ch3 style=\"text-align: left;\"\u003E\u003Cb\u003EWhat is the difference between Structured Programming and Object Oriented Programming?\u003C\/b\u003E\u003C\/h3\u003E\u003Cp\u003EThe key difference between Structured Programming and OOP is that the focus of Structured Programming is to structure the program in to a hierarchy of subprograms while, the focus of OOP is to break down the programming task in to objects, which encapsulate data and methods. OOP is considered more flexible than structured programming, because OOP separates a program in to a network of subsystems rather than structuring the program in to a hierarchy. Even though structuring provides certain clarity, a small change to a very large structured program may cause a ripple effect of having to change multiple subprograms.\u003C\/p\u003E"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/oraclejavacertified.blogspot.com\/feeds\/3283894068127569251\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/oraclejavacertified.blogspot.com\/2021\/03\/structured-object-oriented-programming.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/9163537232404844123\/posts\/default\/3283894068127569251"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/9163537232404844123\/posts\/default\/3283894068127569251"},{"rel":"alternate","type":"text/html","href":"https:\/\/oraclejavacertified.blogspot.com\/2021\/03\/structured-object-oriented-programming.html","title":"Difference Between Structured Programming and Object Oriented Programming"}],"author":[{"name":{"$t":"Keturah Carol"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/17621317473280987274"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"16","height":"16","src":"https:\/\/img1.blogblog.com\/img\/b16-rounded.gif"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhG7TbSLTXgLwU8If5gWezFapSpgNZZ21tByRuMXp66rl7PzJSd-vGeXzgnoMJgUu1PdMb7qcMIcQ1uCYsx53nuM1yjezBH0IMqOMEv-AJHBy4NiD57x-L7ddxTZ1qkb06LtUhkZQiM_xTT\/s72-c\/OOP+vs+Procedure.JPG","height":"72","width":"72"},"thr$total":{"$t":"0"}}});