Good Day Everyone,

 

Today we are discussing object-oriented programming (OOP).  Object-oriented programming aims to provide a method to create objects and contain them within classes.  Several concepts associated with object-oriented programming must be studied to understand the idea.  Java T Point states that “Object-Oriented Programming is a methodology or paradigm to design a program using classes and objects” (Java T Point.  n.d.).  The core ideas behind OOPs are objects, classes, inheritance, polymorphism, abstraction, and encapsulation (Java T Point.  n.d.).  By compiling a simple program to print a statement on a screen, we can begin to explore the concepts of object and class.  Logical objects are items that reside in the physical memory of a computer, and a class is a collection of objects.  (Java T Point.  n.d.). 

To explore Object-oriented programming, we can utilize Java™ as it embodies the concepts of OOP.  Most computers have some version of java runtime available or easily installed on them.  However, to create programs in Java™, we need the software development kit or SDK.  These SDK installations can be found here:  Java Downloads | Oracle (Oracle Documentation. n.d.) 

Once the Java™ SDK is installed, the compiler must be referenced directly to encapsulate a .java file into a .class file.  This process can be tedious when working from a command line.  A great way to simplify this is to include the location where the Java™ SDK is installed in the path statement for the operating system so that you can type the executable command without including the entire location each time.  Although the javac program has a -sourcepath switch to specify which file you are looking to compile into a .class, this method would still require one to remember the install location of the development kit.  Java T Point provides solutions to set your path in this article:  How to Set Path in Java - Javatpoint (Java T Point.  n.d.).

Once we have the development kit in place, the next thing that you will need is an editor to develop your code and write your Object-Oriented Programs.  There are various tools available.  For basic editing, the notepad program that comes with the Windows operating systems will do.  Notepad ++ is another text editing program that is simple and easy to use but caters to programming styles and syntax.  Also recommended is Apache NetBeans, which can be downloaded from netbeans.apache.org at the following link:  Welcome to Apache NetBeans (NetBeans. n.d.).

Now that we have our development kit and editor, we are ready to program our first Java™ program and compile it into a class.  Java™ has a classic program example called “Hello World!”  This example, "Hello World!" for Microsoft Windows (The Java™ Tutorials > Getting Started > The "Hello World!" Application) (oracle.com) (Oracle Documentation.  n.d.) can be used as a template to start your path into Object-oriented programming languages with Java™.

By installing and configuring the Java™ and a text editor on our computer, we now have the tools to begin our exploration into object-oriented programming.

  

Cheers, and enjoy - AB.

 

 

References

 

Java T Point.  (n.d.).  Java OOPs concepts (Links to an external site.).  Retrieved from http://www.javatpoint.com/java-oops-concepts

Java T Point.  (n.d.).  How to set path in Java (Links to an external site.).  Retrieved from How to Set Path in Java - Javatpoint

NetBeans. (n.d.). (https://netbeans.org/)

Oracle Documentation.  (n.d.)  "Hello World!" for Microsoft Windows (The Java™ Tutorials > Getting Started > The "Hello World!" Application) (oracle.com)

Comments

Popular posts from this blog

CPT304: Week 5 Final Project: Blog Post