Pages

Thursday, January 13, 2022

Object-Oriented Programming and Java: A Beginner's Guide

Java is a high-level, class-based, object-oriented programming (OOP) language used to produce software. OOP uses four major principles:

  • Encapsulation: Describes the bundling of data and methods operating on this data into one unit, or class
  • Abstraction: Shows only the essential attributes and hides unnecessary details from the user
  • Inheritance: Mechanism to derive a class from another class for a hierarchy of classes that share a set of attributes and methods
  • Polymorphism: Describes situations in which something occurs in several different forms.
These four concepts were confusing to me until I watched this YouTube video on OOPs:



Installing Java on your computer can be a little tricky if you aren't prepared. Thankfully there are many guides online with step-by-step instructions to follow. The following link will take you to the Java download page where you will select your Operating System and install the Java Development Kit (JDK): 

https://www.oracle.com/java/technologies/downloads/

The 8 minute YouTube video below will show you how to download and install Java and also compile and run your first Hello World program. 


You may also want to install an Integrated Development Environment, or IDE. The IDE will assist you with reading, writing, and testing programs. There are numerous choices to choose from, but the one I went with is called Visual Studio Code, which can be downloaded from the following link: 


The website also provides installation instructions and walks you through building your first Hello World program.   







No comments:

Post a Comment

Applying Algorithmic Design and Data Structure Techniques in Developing Structured Programs

     For an inexperienced student such as myself, that title can seem a bit daunting. Hopefully this post will help make it easier to under...