logo

Crowdly

Specifies an Animal class that defines a constructor for the kind and weight pa...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Specifies an Animal class that defines a constructor for

the kind and weight parameters.

class Animal {

   constructor(kind,

weight) {            

            this.kind = kind;

            this.weight

= weight;

            }

 }

Implement the Tiger class that inherits from the

Animal class and overrides the constructor with the parameters kind, weight,

speed.

0%
0%
100%
0%
0%
More questions like this

Want instant access to all verified answers on softserve.academy?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!