In procedural programming, a program is divided into portions called functions, while in object oriented programming, the program is divided into portions called objects. Another key difference is that object-oriented programming follows the "bottom-up" approach, while procedural programming follows the "top-down" approach.Know More
Procedural programming commands the computer step by step via a list of instructions. It relies on subroutines or routines. A routine can have a series of computational steps. Procedural programming is sometimes referred to as imperative programming. Object-oriented programming, as its name implies, relies on objects. Objects are components of a program that know how to execute certain tasks and interact with the other elements of the program.
Because objects are more versatile, object-oriented programming can be used to develop complex programs with less code. The use of objects also facilitates code reuse. In procedural programming, the focus is placed on the functions and sequence of actions to be performed and not on data. In object-oriented programming, however, the focus is placed on the data and not the procedures or functions.
The main purpose or aim of the two programming methods is to make programming more efficient. They make the process of writing complicated programs simpler, modifiable, expandable, easily understandable and bug-free.Learn more about Computer Programming
Object-oriented modeling reduces the need for maintenance and increases both reliability and flexibility by building new behaviors with the use of existing objects. High code reusability is also an important advantage and allows new objects to automatically inherit data attributes from the spawning class.Full Answer >
A do while loop is used to carry out a certain action (the do) as long as a certain condition is true (the while). For example, a do while statement could be used to increment a variable by one while that variable is less than 10. As soon as the variable is 10 or greater, the do while loop ends and the code progresses to the next section.Full Answer >
Learning how to program involves choosing a programming language, studying books and other resources and putting the acquired knowledge into practice. Beginners must identify their goals in programming and the platform they are using to identify which language they should learn first.Full Answer >
One advantage of extreme programming is that it is very versatile and a weakness would be that it can cause a project to overrun because there is so much to keep track of. An important thing to remember when using extreme programming is to have a good team leader and organization.Full Answer >