Tag: oop
Teaching Kids Programming: Videos on Data Structures and Algorithms Object Oriented Programming (OOP) is an important programming design paradigm. We model data in classes and objects. Class is the …
In OOP (Object Oriented Programming), we use inheritance to achieve the polymorphism. The factory design pattern allows you to create/manage different types of classes in a single place. Let’s …
You might see some method chainning usage in JQuery like this: $('#obj').animate(a).slideUp(b).fadeOut(c); Actually, this is very simple to implement, all we need to do is to return the object …
Polymorphism is one important feature of Object Oriented (OO) concept. In the following example, we want to compute the total amount of fuel required for three types of transport: …
3D vector operations are quite useful and common in the math world, especially when it involves the geometry. The following is a simple class made in PHP that encapsulates …