0

I do inheritance. How Can i make property color private ? Thanks you

Make property color private https://code.sololearn.com/WhKC8wzPUfI7/?ref=app

18th May 2021, 5:12 AM
Malick Diagne
Malick Diagne - avatar
1 Respuesta
+ 1
From the wording of your question, I expected to see code that at least mildly resembled a class but none was found. JavaScript supports the class keyword and a few other techniques but I don't see any of them in your code. What do you mean by making making color private? The only color mentioned in your code is an inline styles property. Did you really mean to comment "POO" instead of "OOP"(Object-Oriented Paradigm)? That looks like a funny typo.
18th May 2021, 6:01 PM
Josh Greig
Josh Greig - avatar