The above figure 1.2. Procedural language executes instructions in a sequential manner. The reasons why procedural languages are not very suitable for graphical applications, is that procedural is about procedures that happen to functions in the code, ie a calculator is mainly procedural programmed as it only requires to show numbers and text and shows the results of functions with text, not graphical images. from Object-Oriented Languages, which operates on both Data and Code. So even though event-driven and object orientated programming are very suitable for producing graphical applications, procedural are not very suitable. Object Orientated languages contain data and functions which will be graphically shown to the user so Object Orientated languages are very suitable for programming Graphical Applications. Object Orientated languages also produce objects that the user can use so you would expect them to use graphical applications for the user to use. Event driven languages usually use graphical applications as the user will probably want a visual display to show a response of the action they did. Event driven languages require an event to happen which is usually a click of a button or a click of a key on a keyboard. Objects and classes used in OOP allows for reusability of code as needed unlike Procedural Programming that requires rewriting for each instance of use. The first advantage is that OOP and EDP allows for faster software development. Procedural Languages are suitable when programming Graphical Applications but they are not the most common languages to use to program Graphical Applications as event driven languages and object orientated languages are more suitable. Object-Oriented programming has several advantages over pure Procedural Programming.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |