---
name: "ExtUtils::XSpp::Node::Constructor"
section: "3pm"
platform: "linux"
package: "libextutils-xspp-perl"
version: "0.1800-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ExtUtils::XSpp::Node::Constructor"
---

# ExtUtils::XSpp::Node::Constructor(3pm)

Node representing a constructor method

## NAME

ExtUtils::XSpp::Node::Constructor - Node representing a constructor method

## DESCRIPTION

An ExtUtils::XSpp::Node::Method subclass representing a  constructor such as:

```
  class FooBar {
    FooBar(); // <-- this one
  };
```

## METHODS

### new

Creates a new `"ExtUtils::XSpp::Node::Constructor"`.

Most of the functionality of this class is inherited. This means that all named parameters of ExtUtils::XSpp::Node::Method and its base class are also valid for this class' constructor.

Additionally, this class requires that no return type has been specified as constructors do not have return types.

### ret\_type

Unlike the `"ret_type"` method of the ExtUtils::XSpp::Node::Method class, `"ret_type"` will return the type "pointer to object of this class" as return type of the constructor.
