Marius’s Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Hellfire103@lemmy.ca to Programmer Humor@lemmy.mlEnglish · 8 months ago

TIFU by not using objects in my object-oriented programming coursework

lemmy.ca

external-link
message-square
12
link
fedilink
8
external-link

TIFU by not using objects in my object-oriented programming coursework

lemmy.ca

Hellfire103@lemmy.ca to Programmer Humor@lemmy.mlEnglish · 8 months ago
message-square
12
link
fedilink
  • ddplf@szmer.infoBanned from community
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    Good, OOP can suck my balls

    • vext01@lemmy.sdf.org
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      Balls.suck() is the correct syntax.

      • RagingToad@feddit.nl
        link
        fedilink
        arrow-up
        0
        ·
        8 months ago

        Don’t you need to declare new Balls() first? Or do you suck() Balls static?

        • xigoi@lemmy.sdf.org
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          8 months ago
          BallsFactory ballsFactory = new BallsFactory();
          ballsFactory.setSuckable(true);
          Balls balls = ballsFactory.create();
          

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 304 users / day
  • 1.09K users / week
  • 3.06K users / month
  • 7.9K users / 6 months
  • 1 local subscriber
  • 37K subscribers
  • 1.81K Posts
  • 34.1K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org