Please explain in the simplest way

need a simple explanation for this

Add Methods After Inheritance

A constructor function that inherits its prototype object from a supertype constructor function can still have its own methods in addition to inherited methods.

For example, Bird is a constructor that inherits its prototype from Animal:

function Animal() { } = function() {
  console.log("nom nom nom");
function Bird() { }
Bird.prototype = Object.create(Animal.prototype);
Bird.prototype.constructor = Bird;

In addition to what is inherited from Animal, you want to add behavior that is unique to Bird objects. Here, Bird will get a fly() function. Functions are added to Bird's prototype the same way as any constructor function: = function() {
  console.log("I'm flying!");

Now instances of Bird will have both eat() and fly() methods:

let duck = new Bird();;; would display the string nom nom nom in the console, and would display the string I'm flying!.

Add all necessary code so the Dog object inherits from Animal and the Dog’s prototype constructor is set to Dog. Then add a bark() method to the Dog object so that beagle can both eat() and bark(). The bark() method should print Woof! to the console.

why do i have to set the dog prototype constructor to dog i have been through the module explaining that but i dont understand what is going on

another question why do i have to type why can i not just type

it seems everywhere i read i dont understand oop object oriented programming