# attributeNames {#attributeNames}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`attributeNames(obj)`

## Arguments {#arguments}

**obj** is a class instance.

## Details {#details}

Get all attributes of the class instance.

**Return value**: A STRING vector.

## Examples {#examples}

``` {#codeblock_y5q_q5s_sdc}
class Person {
	
	name :: STRING
	age :: INT

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

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

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

