ZNOW

class

instance

interface

abstract-class

extends

implements

private

protected

public

static

const

constructor

super

read-only

friendly-method

event

Abstract Class

Abstract class is supported in ZNOW. Creating an abstract class is similar to creating a class. The only difference is that there must be some abstract methods in an abstract class.

var Person=Class({ init:function(name){ this.$name=name; }, setJob:function(job, hrs){ if(hrs > 8) return false; this.$job=job; return true; }, work:ABSTRACT(), //declare an abstract method $job:false, $name:false });

Like many other programming languages, instances cannot be created from abstract classes. In ZNOW, it wont throw exceptions but it will log the error and return null;