Tuesday, January 27, 2015

Chapter 2 Headfirst into Java

In Chapter 2 you about how object oriented programming is considered better than procedural programming by the majority. A major benefit of object oriented programming over procedural is that you can change the code easily without unknowingly alter the code while changing one part. Object oriented programming has an object contain a method. Any code pertaining to that object can be run if the class is called for; in procedural, the code is in a linear pattern and usually has a significant amount of lines . Object oriented programming also allows you to assign similar objects to a class to simplify your code.Object oriented coding gives you the option to assign similar objects to classes to compact and simplify your code.

No comments:

Post a Comment