This post shows Ruby codes that create a simple class and objects from that class. Yes, Ruby is an old and weird programming language, but people and companies are still using it. Therefore, no one programming language has a monopoly
Ruby – Basic Inheritance
This post talks about how to implement basic inheritance in Ruby using a simple example. I’ll throw in some comparisons with Java.
Chapter 1: Introduction To Python 3 That Does Not Bite
Python is a general-purpose programming language that is available in many operating systems. When we run a Python program, we run it using the Python interpreter. However, there is more to that than meets the eye. The Python interpreter reads
Kotlin – Overloading Constructors
This post demonstrates how to overload class constructors in Kotlin.
How to create classes in JavaScript
Background [wp_ad_camp_1] I must admit I used to dislike JavaScript and UI development. First, I related JavaScript to Web UI design at which I am very not good at. I do not have an artistic side when it comes to
JavaScript Object Creation and Object Methods and Properties
[wp_ad_camp_1] If you’ve read this, it merely declares JavaScript can do OOP. It did not talked about other (more advanced) OOP stuff like access modifiers, encapsulation – behaviors and properties, and inheritance. On this article, we’ll talk more on object
JavaScript Static Properties and Methods
In JavaScript Object Creation and Object Methods and Properties, we talked about methods and properties that are tied to an object. Without an object, these properties are unusable and inaccessible to other codes. There is another type of members – static methods and properties. These are only accessible via the class itself. These are even inaccessible if referenced via objects.
Constructors in PHP 5+
This article demonstrates how constructors work in PHP. It will also touch on destructors just briefly. If you’re a Java programmer who has somehow become bored with anything Java and wanted to explore PHP, the first thing you need to realize is OOP in PHP is slightly different. Take for instance, constructors.