Quantcast

Programming

Programming

Haskell: How To Rewrite The “Last” Function from Scratch

Just finished a Computer Science lecture today, and two of the main questions that stumped me in our lab tasks were on rewriting the...

A Basic Overview of PHP OOP (Object-Oriented Programming)

PHP OOP
OOP consists of programming languages that manipulate Objects. They tend to use data more than logic. What are some advantages of OOP? ...

Java GUI Tutorial: Swing, JFrame, JPanel, JButton, FlowLayout …

Graphical user interfaces are the quintessential part of any commercially available software. Could you imagine buying Microsoft Word if you had to input via command line? I...

The Difference Between Method Overloading & Overriding in Java!

Overloading is the implementation of two more methods in the same class with different parameters (or arguments). Overriding is the implementation of two methods that...

How Many Constructors Can A Class Have (Overloading Examples)?

Classes in Java can have as many constructors as you like. Using "overloading" you can create an Object with different parameters. You can have...

The Difference Between Instance & Static Methods in Java

An instance method is a method used only for THAT VERY INSTANCE. A static method is FOR EVERY INSTANCE. Here's a little code snippet to...

Pass A Text File to Scanner, Then Read It, in Java

The Scanner is super useful for taking user inputs. However, you might want to pass a text file into it. I'm going to show you...

Implicit & Explicit Parameters in Java, Explained

We've got the funky names for the things in Java. Implicit and explicit parameters. What the hell is that. As a programmer you've probably...

What Is An Interface in Java?

Java contains Interfaces, Classes and Objects. Distinguishing between each can be slightly difficult at first, but I will explain exactly what a Java interface...

What Is Encapsulation in Java?

In Java, and generally in Object-oriented programming, there's this magical thing called "Encapsulation". Encapsulation brings variables and methods together as a single thing. This way the...

What Is The Difference Between An Object & A Variable (JAVA)

In Java there's a few different things; Objects, Classes and Variables to name a few. In this post I'll be explaining the difference between what...

How To Make New Class in Java (Making A Simple Mammal...

Classes are super important in Java and most other Object-orientated programing languages. But what exactly is a Class? Classes Explained Simply Something...