| 1. |
Write a short note on the techniques of programming |
|
Answer» 1. Procedural programming technique: It is a list of instructions telling a computer, step-by-step, what to do, usually having a linear order of execution from the first statement to the second and so forth with occasional loops and branches. Procedural programming languages include c, C++, etc. Some of the benefits of the procedural programming methodology are:
2. Structured programming technique: Structured programming deals only with logic and code, and suggests making use of programming structures such as sequence, selection, iteration and modularity in programs Features:
3. Object-oriented technique: Object-oriented programming is a method of programming where a system is considered as a collection of objects that interact together to accomplish certain tasks. Objects are entities that encapsulate data and procedures that operate on the data. The main purpose of objectoriented programming is to simplify the design, programming and most importantly debugging a program. So to modify a particular data, it is easy to identify which function to use. The important elements of OOP are objects, classes, abstraction, encapsulation, polymorphism, and inheritance. |
|