Opc Disadvantages

1133 Words 5 Pages
There are different types of programming such as object-oriented programming (OOP), event-driving programming (EDP), and procedural program, (PP). Some people may agree that there are advantages of using OOP instead of only using PP. A class may have one attribute and one method, in which the class represents an event, the attributes the class stores and the purpose of the method. The class, attributes, and methods share a relationship. Visual Logic is used to learn about programming but lacks in OOP features. There are advantages to using the EDP as compared with using PP.
OOP vs PP. OOP is a programming language which is centered on data and the methods used to access the data. The objects interfacing with the data could be a menu system for the users, a form pulling data to make usable information
…show more content…
Working with Visual Logic, it is more procedural programming based with creating procedures to perform actions. Classes describes a group of objects with common attributes and Visual Logic does not have a way of creating a class. Another thing with the Visual Logic is that the same variables can be numbers or letters. In other programming languages, normally if a variable is defined as a number, it can only store numbers. A string variable could store both letters and numbers. The variables in Visual Logic can be both and not show an error message. Polymorphism is another feature lacking from Visual Logic. According to docs.oracle.com (n.d.), polymorphism is a principle in biology where an organism have different forms or stages, which can be applied to OOP, in that using same method to pass different variables, (docs.oracle.com). The procedures in Visual Logic contain functions to carry out an action. Variables can be passed into the procedures but are normally set, where with polymorphism, a method acting appropriately according to is passed into its

Related Documents