Wednesday, November 4, 2020

Structured programming Vs object-oriented programming

 There is no formal definition of structured programming, but most agree that it must have a top-down design and use only the three types of logical structures :

1. Sequence (top-down): Statements are executed one after the other.

2. Decisoins (if-else): One of the several blocks of the program is executed based on a test or condition.

3. Iterations (loops ): One or more statements are executed repeatedly as long as a specified condition is met.

Object-Oriented programming:

Can be viewed as a collection of cooperating objects. We use a blend of traditional structured programming along with OOPs. 

An object is an encapsulation of data and code that operates on that data. It is the most effective style of programming for solving complex problems and implementing complex systems in computer softwares.

No comments:

Post a Comment

इश्क में ग़ैरत-ए-जज़्बात ने रोने ना दिया - सुदर्शन फ़ाकिर

 इश्क में ग़ैरत-ए-जज़्बात ने रोने ना दिया वरना क्या बात थी किस बात ने रोने ना दिया आप कहते थे कि रोने से ना बदलेंगे नसीब उमर भर आप की इस बात...