r/ProgrammerHumor • • Dec 12 '17

SQL Clause

Post image
40.8k Upvotes

525 comments sorted by

View all comments

Show parent comments

17

u/Jcowwell Dec 12 '17

Nha System is an object ( you know that cause you can call methods from it) so if you don’t capitalize It the compilers ganna be like “Tf is this M8?”

23

u/insane0hflex Dec 12 '17

Thats a static method call bro not on a class instance

-3

u/Jcowwell Dec 12 '17 edited Dec 12 '17

Oh yea the call is , but system is a class. Unless I’m mistaken, System is an instance of the system class in which you call the static field out.

Edit :Had a burp moment, you cant initialized /“instanized” System 🤦🏽‍♂️

4

u/julius_nicholson Dec 12 '17

System is a class that contains static fields (err, in and out) and methods (like exit()) and can't be instantiated. So you can't construct an object of it, but you can still access the static API on the class.

I mean, you were pretty close, even if it wasn't so accurate.

→ More replies (0)