Java & Object Oriented Programming


         During our first week, we were required to install and configure the software necessary for the course. I was able to install Java and the NetBeans IDE with no issues. One of the initial steps for the Netbeans software is to add a new Java application with a name for your project. This results in the main class being created and the program provides you with a basic shell to add your package source and a smaller window to run your code.
           It was my first experience installing the software programs, which were small and self-explanatory to navigate. I  incorrectly named the project for my first application, but I was able to adjust it after digging deeper into the options provided in the Apache Netbeans program. In the end, I was able to complete the first assignment by creating a small program called “Hello My Name Is”. I used the information on the oracle site below to provide screenshots that walked me through the installation of NetBeans:
https://docs.oracle.com/javase/tutorial/getStarted/cupojava/netbeans.html/
In addition, I used the following YouTube video to help me create my first program:
https://www.youtube.com/watch?v=K3twuFyPwkg/
                             Object-Oriented Programming
       Object-Oriented Programming (OOP) is a methodology that we will be learning about this week. OOP is a “methodology to design a program using classes or objects” (Java OOPs Concepts - Javatpoint, n.d.). In Java terms, an object can be a physical or logical entity that has a state or behavior, such as a chair, table, or marker. In effect, we are using code to represent real-world objects. For me, it will take some time to translate physical objects into code since I am still getting acquainted with some of the terminologies.
   The main principles of OOP include:
·       Abstraction – Showing only the necessary details of an object. For example, the action of pushing a button on a smartphone. We are only concerned with the action, nothing else.
·       Inheritance -  This uses previous information, such as a development class, to extend or modify the building of another class. It minimizes the need for additional code.
·       Polymorphism -  This allows us “to perform a single action in different ways” (Java OOPs Concepts - Javatpoint, n.d.)
·       Encapsulation –Properties of objects get restricted access only to specific system calls  (Keep on coding, 2020).

Figure 1.

Note: Object-oriented programming concepts.

         The package that results in Netbeans will be the container for your related classes and interfaces. Additional information can be stored there, such as HTML pages, folders, and images. It took some time for me to grasp the concepts of Python programming and I wish some of these courses lasted longer than five weeks. It is a lot of information to grasp but I hope to get a solid understanding of Java in the next few weeks.
-Marlon
                                     References
CNAWebDeveloper. (2012, May 9). Writing your first java programs using NetBeans [Video]. YouTube. https://www.youtube.com/watch?v=K3twuFyPwkg/
Java OOPs Concepts - Javatpoint. (n.d.). Www.Javatpoint.Com. Retrieved March 17, 2022, from https://www.javatpoint.com/java-oops-concepts
Keep on coding. (2020, February 26). Object oriented programming - the four pillars of OOP [Video]. YouTube. https://www.youtube.com/watch?v=1ONhXmQuWP8