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.
Figure 1.
-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