Advantages of object oriented programming over earlier programming methodologies
Asked by admin @ in Computer Science viewed by 287 People
Advantages of object oriented programming over earlier programming methodologies.
Asked by admin @ in Computer Science viewed by 287 People
Advantages of object oriented programming over earlier programming methodologies.
Answered by admin @
Procedural programming are structural programming languages which executed the code sequentially depending on the instruction received through some subroutine and function calls.Languages like C,cobol are procedural language.
While OOP brings the concept of class which is a collection of data and methods that relies on the operation of object.The concept of class and object brings the dynamicness within a code and most importantly make the code reusable unlike procedural language.Languages like SystemVerilog,java and C++ uses the concept of OOP.
The major advantage of using OOP are:-
Introduces concept of Inheritance which is useful in extending the properties of base class into child class along with its existing methods which increases code reusability and minimises code length.
Introduces the concept of Encapsulation which is a data hiding property within a class so that a particular data member can remain private.
Introduces polymorphism concept using virtual methods which is useful in overriding class properties and methods.
Introduces abstract class concept which is just a placeholder for a class and object can not be created out of it and the use of it comes in task and function call.
Introduces shallow copy,deep copy and object copy concept which are missing in procedural language.
Introduces multiple Inheritance and composition concept where a single child class can inherit the properties of more than one class at the same time which helps in tremendous reduction of code and minimises debugging effort within a code.
Introduces concept of observer pattern so that if a particular object within a class got modified then extended data member which is dependent on that object gets updated without any further modification of the code.
The concept of OOP related features brings the idea of Reusability,dynamic nature,inter communication within the blocks,multithreading,etc which are missing in procedural language.
Asked by admin @ in Computer Science viewed by 338 persons
Asked by admin @ in Computer Science viewed by 294 persons
Asked by maham237 @ in Computers And Technology viewed by 306 persons
Asked by admin @ in Computer Science viewed by 367 persons
Asked by admin @ in Computer Science viewed by 327 persons
Asked by admin @ in Social Sciences viewed by 304 persons
Asked by admin @ in General viewed by 427 persons
Asked by wiki @ in Health viewed by 1346 persons
Asked by wiki @ in Social Studies viewed by 787 persons
Asked by vanshika149 @ in English viewed by 1199 persons
Asked by rajesh064 @ in English viewed by 1373 persons
Asked by jaylord7 @ in Mathematics viewed by 1148 persons
Asked by jesus643 @ in History viewed by 1550 persons
Asked by kavin044 @ in English viewed by 1503 persons
Asked by admin @ in Computer Science viewed by 19035 persons
Asked by admin @ in Computer Science viewed by 15823 persons
Asked by admin @ in Computer Science viewed by 10981 persons
Asked by admin @ in Computer Science viewed by 10413 persons
Asked by admin @ in Computer Science viewed by 8151 persons
Asked by admin @ in Computer Science viewed by 7850 persons
Asked by admin @ in Computer Science viewed by 6498 persons
Asked by admin @ in Computer Science viewed by 5801 persons
Asked by admin @ in Computer Science viewed by 5703 persons
Asked by admin @ in Computer Science viewed by 5484 persons
Asked by admin @ in Computer Science viewed by 4991 persons
Asked by admin @ in Computer Science viewed by 4982 persons
Asked by admin @ in Computer Science viewed by 4695 persons
Asked by admin @ in Computer Science viewed by 4496 persons