Hellfire103@lemmy.ca to Programmer Humor@lemmy.mlEnglish · 8 months agoTIFU by not using objects in my object-oriented programming courseworklemmy.caexternal-linkmessage-square12linkfedilinkarrow-up18arrow-down10
arrow-up18arrow-down1external-linkTIFU by not using objects in my object-oriented programming courseworklemmy.caHellfire103@lemmy.ca to Programmer Humor@lemmy.mlEnglish · 8 months agomessage-square12linkfedilink
minus-squareddplf@szmer.infoBanned from communitylinkfedilinkarrow-up0·8 months agoGood, OOP can suck my balls
minus-squarevext01@lemmy.sdf.orglinkfedilinkarrow-up0·8 months agoBalls.suck() is the correct syntax.
minus-squareRagingToad@feddit.nllinkfedilinkarrow-up0·8 months agoDon’t you need to declare new Balls() first? Or do you suck() Balls static?
minus-squarexigoi@lemmy.sdf.orglinkfedilinkEnglisharrow-up1·edit-28 months agoBallsFactory ballsFactory = new BallsFactory(); ballsFactory.setSuckable(true); Balls balls = ballsFactory.create();
Good, OOP can suck my balls
Balls.suck() is the correct syntax.
Don’t you need to declare new Balls() first? Or do you suck() Balls static?
BallsFactory ballsFactory = new BallsFactory(); ballsFactory.setSuckable(true); Balls balls = ballsFactory.create();