Posts Tagged ‘class’

30 Days of Mootools 1.2 Tutorials – Day 21 – Classes part II

Thursday, September 18th, 2008

Now that we’ve got our base class defined, we can access its functionality by creating another class which implements it. Note in the example below that our new class isn’t doing anything but implementing BaseClass.

//Build a class called ImplementingClass
var ImplementingClass = new Class({
//All we do is implement Baseclass
Implements : BaseClass
});

Now we can create an instance [...]

30 Days of Mootools 1.2 Tutorials – Day 18 – Classes part I

Thursday, September 4th, 2008

If you haven’t already, be sure and check out the rest of the Mootools 1.2 tutorials in our 30 days series.

Today we’re going to be taking a look at the basics of creating and using classes with Mootools.
To put it simply, a class is a container for a collection of variables and functions which operate [...]