In previous post, we have already studied about Translators in computer . Now we are going further....
Structured Programming:-
Structured programming frequently employs a top-down design prototype during which programming developers map the general program structure into separate subsections. C language is known as structured programing(SP) language because to deal with an outsized problem, C programing language divides the matter into smaller modules called functions or procedures each of which handles a particular responsibility. The program which solves the whole problem may be a collection of such functions. One major drawback of C language is that similar functions can't be grouped inside a module or class. Also functions can't be associated to a kind or structure. Thus data and functions cannot be bound together. C++ language overcomes such type of problems by introducing object oriented functionality in its programming capabilities.
Advantages-
• C structured programming is straightforward and straightforward to know and implement.
• It's well sited for little size implementation. However this is not restricted. A good design can develop it to large size implementation.
• Programmers don't require to understand complex design concepts to start out a replacement program.
Disadvantages-
• Data and methods and not be bind together during a module. Polymorphism and inheritance are not available.
• Complex design and full object oriented design can't be implemented.
Structured programming |
Object Oriented Programming?
In OOP, the main target is on brooding about the matter to be solved in terms of real-world elements and representing the matter in terms of objects and their behavior. Classes depict the abstract representations of world objects. Classes are like blueprints or templates, which gather similar items or things which will be grouped together. Classes have properties called attributes. Attributes are implemented as global and instance variables. Methods within the classes represent or define the behavior of those classes. Methods and attributes of classes are called the members of the category . An instance of a category is named an object. Therefore, an object may be a arrangement that closely resembles some world object. There are several important OOP concepts like Data abstraction, Encapsulation, Polymorphism, and Inheritance.
0 Comments
If you like my content then share it...