Can you explain how OOP works?
I tried a couple tutorial but they are all about cats and their 4 legs or about fuckin cars and so I have no idea how to use OOP in real applications.
I made a OOP program. Kind of a noob here but I'll explain my understanding.
So classes define objects that know things and can do things.
For my programming class I had to simulate an ATM using OOP, so I've got this ATM class/object, it knows the following:
- The path of the database with all the user pins and money and stuff
- All the user instances it has in a list
And how to do this stuff (methods):
- Read data from the database
- Run (present user menu and process input)
When it reads the user data, it creates instances of another class called User and stores them in a list. Each user knows this stuff
- the users pin
- the users id
- the users Checking account (Account instance)
- the users Savings account (Account instance)
and how to do some other stuff. I dont know man just write a program, fuck you, fuck OOP
>>57858279
jesus dude, just go to school
web classes are not good classes
>>57858279
It's pretty simple. It's about creating subclass or common methods for variables or objects that you will need to create in your program and they will be pretty similar.
For example, if you want to create a program that contains Pokemons, you create a subclass "pokemon", where you specific that all pokemons will have a integer data call "level", a String that will be the name, etc.
Also it can help you avoiding future mistakes, for example, in the class pokemon you can make that if you add a pokemon with an impossible level (like 520) the program will forbide you to do that.
What would you do with a PC with pic related specs?
>>57858177
Grab an aftermarket board and unlock the X2 into an X4.
>>57858212
Any suggestions on what board to buy?
>>57858298
Gotta be socket AM2/AM2+, and have overclocking features. Maybe look up what boards others used to unlock their CPU's.
I picked 'Data Structures and Algorithms' as my elective in my programming-centric program. Chose it over other things like 'Mobile App Development - Android', 'Parallel Programming Fundamentals' and 'Introduction to Datawarehousing'.
How good of a move was this? What will this knowledge be used for (what field is it most used in)?
>>57858147
Sounds like you fucked up when choosing your school.
Why is that not a mandatory part of your curriculum?
>>57858147
That's not a requirement?
>he's still using DDR3
>>57858074
DDR3 is in many situations faster than DDR4, including gaming. DDR4 was created mainly for lower power use and workstation tasks.
>>57858074
no, I'm still using FB-DIMM
>>57858074
>he thinks the numbers matter
>go to public library
>sit at computer
>insert usb flash drive with linux live CD
>reboot
>delete all partitions on hard drive
>get up and leave
Public libraries are cool mang why you gotta do that
>>57858100
He didn't, he just an edgelord faggot.
>>57858070
This board is for 18 and up only.
So I'm planning on getting a 1070. Anyone have any feedback about this card? Is it worth paying the extra 200$ for the 1080? It seems like games today would barely even take advantage of the 1070.
PS I don't plan on gaming in 4K for at least another year
>>57858051
FYI. I just bought a 1060 and most games im play are doing 2160p on it. Idk why people push for 1080's for 4k so much. 1070 will be plenty even if you wanted to do 4k
>>57858051
>wait
1080Ti is out soon enough.
Regardless of what you're getting, wait.
What is the perfect tablet for old people? Need something cheap, with a big screen and configurable in greek.
xiaomi
either a refurbished iPad
or if android, pick something with custom rom support and tweak the hell out of it not allowing grandma to screw it up.
>tfw people will give me money just to torrent some popular TV show for them
Who even needs a real job?
>>57857905
how much to rob a bank? how much to murder someone?
now you're not only a law-disobeyong citizen, but also a paid criminal. have fun in jail.
>talking about criminal activities on Facebook
>makes 5 dollars
>"who even needs a real job?"
People that want to afford nice things instead of living with their parents and eating shitty microwave dinners while they try to rationalize their lives.
>>57857976
>writing certain combinations of 1's and 0's to a cd is a crime
Hey /g/ where do you buy your cool laptop stickers from? pic unrelated
>>57857757
>>57857757
>glueing memes and brand logos on your devices
>paying for the privilege of becoming a billboard/ an exhibit of the embarrassing taste a normal person would hide
I visit RMS's talks and take stickers for gratis.
This is my first time on /g/ so I hope I'm not breaking the "not your personal tech support team" thing. I've tried googling the issue and only came up with "how to fix coils" for straight wires, like tangled wire shit.
I'm just wondering if there is a way to fix this back to the normal coil. I can't find an actual answer, so any help would be appreciated. Cheers.
>>57857686
>I hope I'm not breaking the "not your personal tech support team" thing
At least you know you're in the wrong.
Borrow a hair straightener from your mother and use it to straighten the cord out. Then use her curling iron to make it coiled again.
>>57857686
>open thumbnail
>see fucked up thumb nail
>ayy lmao stamp
>>57857701
Nothing like a bit of burning rubber.
>3am
>lying in my bed, reading a book
>closed laptops wakes up
>turns fan on, flashes some diodes
>turns off after about a minute
It happned 3 times, always in late night. What the hell?
>>57857633
>closed laptops wakes up
>>>/x/
Ur resident spooky ghosts wants to post memes
https://www.instrumental.ai/blog/2016/12/1/aggressive-design-caused-samsung-galaxy-note-7-battery-explosions
>MUH THIN
SAMSHIT HOUSEFIRES
K.
>>57857613
This is pretty old news.
>>57857613
GREAT SUCCESS. I bet Samsung's engineering team is proud.
Yo /g/, what safe is this is and how can i open it without compromising the safe/code?
Second pic
>>57857517
that plastic next to the the dial lifts up to reveal the key, jamal.
>>57857517
Look for any marks or wording on the safe.
Hey /g/
I'm boning a computer science major and he's graduating this month.
What should I get him for xmas so I get more d?
>>57857356
>implying you aren't cucking him enough already with BBC.
most stuff computer scientists like is free
it's kind of a big thing here if you didn't notice
tell us more about him
post boobs
>>57857383
I'm a dude
>upgrade to gtx 1070
>horrible screen tearing just when scrolling in browser
you fucking cheated me
haha u idiot
lol he actually fell for it
>>57857328
welcome to the nvidiot optimus pain
never buying nvidia bullshit again