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 in a form, or other ways of working with data. The procedural programming centers on procedures created in the program which focus on actions to be done. An advantage of using OOP instead of PP is grouping of common information in a class. According to Shelly & Rosenblatt (2012), class are where all objects share common attributes and methods, classes can be looked at as a template, (p. 256). For an example when collecting information on a form for laptops and desktops, common information collected might be RAM, processor speed, hard drive space. Desktop may include number of fans can be installed. In OOP, one class to common collect information for both laptops and hard drives which is RAM, processor speed, and drive. Where in PP, code will be written the laptops with all the information, and then with desktops asking for the information. Using the PP method makes the programming code larger and the OOP would be simpler. Another advantage of OOP over PP would be easier to add another form. For an example form for collecting information on tablet which could include processor, operating system, and hard drive space. In OOP, just need to extend the class that contains the common information. Where in PP a new form will need to be recreated and repeated for the common information. In general expanding the classes with the common information in OOP is easier than recreating forms by using PP. OOPS has more flexibility and easier for using repeated code when making changes or addition into the program. Class, attribute, and method. In OOP, classes, attributes, and methods are used in creating a program. According to Farrell (2013), a class is a group of objects with common attributes, an attributes are characteristics that define the object, and method is like a function, procedure or considered a subroutine, (p 48, 408). An example of a class would be called monitors, the attributes in the monitor class would be screen size, resolution, refresh rate, and display colors. A method used with the class and attributes would be to use resolution as a parameter and collect information on different monitors such as looking up all monitors with a 1920 x 1080 resolution for a report. The class represents all the different brands in a database of monitors with similar information. The attributes represents the information that is similar to each of the brands. There are different methods that …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