Ok So I hav a class name StrawHat, like this ``` c...
# getting-started
o
Ok So I hav a class name StrawHat, like this
Copy code
class StrawHat {
    constructor() : Wearable(name = "Straw Hat") {

    }
}
The constructor of this class gives an error: Expecting a this or super constructor call.... How do i call this type of constructors?
s
constructor()
is used to declare secondary constructors, not primary ones
you need
class StrawHat : Wearable(name = "Straw Hat")