3 ms·
I'd go a little further than Wikipedia however - in my book you need to have a variable that represents more variables. In Java you can do this with a class and
by coding123 9y ago
I'd go a little further than Wikipedia however - in my book you need to have a variable that represents more variables. In Java you can do this with a class and an object of that class. In C you can do this with a struct. Both languages are capable of being OOP. Now, in both languages you can also make mistakes, as a programmer. In Java I can decide to make a class called "Monitor" that has a bunch of static methods to control the monitor... such as on/off, change resolution, etc... I would personally consider that a poor design, because while in 1990 a computer had 1 monitor, in 2017, a computer may have unlimited monitors (think controlling monitors over a network for example).
We can make the same mistake of assuming a single monitor in Java or C, but both languages can also easily support multiple monitors ;)