I do inheritance. How Can i make property color private ? Thanks you | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answer
+ 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