Prototype inheritance (OOP)

This issue has been tracked since 2022-08-18.

Hello,

Could you please explain how the prototype inheritance works between classes and constructor functions. In case of an inheritance from a construction function to a class(same as between classes "Class extends function", but I could find out how to apply prototype inheritance to a construction function from a class as I tried the Class.call(this ,properties...) and I got an error of "Class constructor *** cannot be invoked without 'new' at new ***". still we could use "Function.prototype = Object.create(Class.prototype);" but that will inherence methods and not the properties.

Thanks,

akozdev wrote this answer on 2022-10-18

Not sure if it's possible actually. Do you need it though, or is it more out of curiosity?

More Details About Repo
Owner Name jonasschmedtmann
Repo Name complete-javascript-course
Full Name jonasschmedtmann/complete-javascript-course
Language JavaScript
Created Date 2018-06-14
Updated Date 2023-03-29
Star Count 12137
Watcher Count 850
Fork Count 14403
Issue Count 153

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date