attributeNames

Syntax

attributeNames(obj)

Arguments

obj is a class instance.

Details

Get all attributes of the class instance.

Return value: A STRING vector.

Examples

class Person {
	
	name :: STRING
	age :: INT

	def Person(name_, age_) { 
		name = name_
		age = age_
	}
}

p = Person("Sam", 12)
attributeNames(p)

// output: ["name","age"]