0
I do inheritance. How Can i make property color private ? Thanks you
Make property color private https://code.sololearn.com/WhKC8wzPUfI7/?ref=app
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.