CSS And OOP Classes Comparison

Click here to change the theme.

This is a work in progress. I am attempting to compare CSS And OOP Classes. They are very different and I think the comparison will help beginners understand CSS, at least those of us that are alreadyh familiar with OOP.

In OOP, classes are declared (such as using the "class" keyword) and can inherit multiple classes/interfaces but every allocated instance inherits exactly the same as every other instance of the class. In CSS, class instances (as created by the "class" attribute) can inherit independent sets of classes. CSS inheritance is totally different from OOP inheritance.