Getting Started with Object Oriented Programming

When getting started with Object Oriented Programming it is important to familiarize yourself with the four major principles of OOP and the concepts.  Understanding the principles and concepts of OOP will assist you during the process of writing and developing code.  First the four major principles of OOP are encapsulation, abstraction, inheritance, and polymorphism.

  • Encapsulation is hiding daya implementation by restricting access.  This is when an object can maintain its state private within a class.
  • Abstraction and encapsulation are closely tied together because data abstraction is the the development of classes.  Abstraction is used to manage complexity.  Abstraction can be used to decompose complex systems into smaller components making them more manageable.  Abstraction also makes it possible for objects to reveal operations relevant for other objects.
  • Inheritance allows you to inherit functionality from another class, called the super class or base class.  The most useful feature of inheritance is the ability to extend components without any knowledge of how a class was implemented.  
  • Polymorphism makes it possible for objects to take on more than one form based on the context.  Multiple methods all with the same name but with slightly different functions.
The concepts of Object Oriented Programming are object, class, inheritance, interface, and package.  These are very important to understand before you begin to write out any code. 
  • Object is a software bundle of related state and behavior and software objects are used to model real-world obects.
  • Class is a blueprint or template for which objects are created.  The importance of the class is to model the state and behavior of the real-world objects.
  • Inheritance provides the mechanism for organizing and structuring software.
  • Interface is a contract between a class and the outside worl.  When the class implements the interface, it promises to provide the behavior published by the interface.
  • Package is where the class and the interface are organized in a logical manner.
For a more in depth and interactive tutorial on the concepts of OOP you can visit this link https://docs.oracle.com/javase/tutorial/java/concepts/index.html and browse through each concept for more detailed explanation.

Now that there is a basic understanding of Object Oriented Programming its important to choose a language to begin practicing and writing code.  There are many to select from but the most widley-used OOP language is Java.  One of the reasons that Java is so popular is its the offical language for Android application development.  Android is the most popular mobile operating system on the planet so naturally Java is going to be the most used language due to that market alone.

So the next step is downloading Java which can be done by going to the https://www.java.com/en/download/ website to find the correct format of Java required to run on the operating system that you are working on.  After locating the right format it is easy to follow the instructions provided to complete the download.

After downloading Java it is important to choose and IDE in order to write and run code.  There are several different IDE's to choose from.  Apache NetBeans15 is one that is highly recommended due to its tutorials and ease of use and can be found at this link https://netbeans.apache.org/kb/docs/java/index.html.

Following the directions on the JavaSe quickstart you can complete the "Hello World!" exercise. https://netbeans.apache.org/kb/docs/java/index.html

        





 For the first week’s blog post, access your Blogger 

Links to an external site.account. Create a new post where you provide guidance on Java installation and discuss the concepts and features of the object-oriented design principles. Keep in mind that you do not want to provide a step-by-step tutorial on how to install Java as you did in this week’s discussion. Instead, you may want to provide links to tutorials or resources that you may have used to install Java and produce the Hello World program. This is your chance to let future employers know that you, a technical professional, can communicate technical concepts to non-technical individuals.

Comments

Popular posts from this blog

Operating System Theory and Design

PING goes the Traceroute

Simple Explanation of Algorithmic Design and Data Structures