C++ noob getting into java

C++ noob getting into java.

Please explain to me the core concepts behind object oriented programming.

Attached: 1564130236995.png (581x525, 55K)

Other urls found in this thread:

yegor256.com/2014/09/16/getters-and-setters-are-evil.html
yegor256.com/2014/11/20/seven-virtues-of-good-object.html
github.com/Microsoft/referencesource/blob/master/System.ServiceModel/System/ServiceModel/MessageSecurityVersion.cs#L143
twitter.com/NSFWRedditGif

You put your programs in objects

>encapsulation
>inheritance
>polymorphism
that's it

You should already know them if you are coming from C++
That being said, OOP is when the code is humanly readable.

>He leaves out the most important principle
FUCKING GRADUATE BEFORE POSTING

Go read a goddamn book, faggot.

Dog goes bark. Duck goes quack. Cow goes moo.

IBarkibleAnimal goes dogObjectReference.bark(); IQuackingAnimal goes duckObjectReference.quack(); IMooingUngulate goes cowObjectRerefence.moo();

Questions?

if his brain is an hypercube he should be infinitely smart

why

Because he has to graduate before posting

forcing you to write boilerplate and use functions pointers for the illusion of encapsulation.

To abuse my juniors, of course. And to reference Teletubbies. Mostly the latter.

Oop is bloat procedural programming is where it's at your operating system was written in a lang that doesn't support classes

Object oriented programming is retarded you should never optionally do it.

someone explain what the fuck an AbstractSingletonProxyBeanFactory is

yegor256.com/2014/09/16/getters-and-setters-are-evil.html
yegor256.com/2014/11/20/seven-virtues-of-good-object.html

a shitting street

The one who needs to graduate is you kid

IAnimal goes animalObjectReference.makeSound()

>core concepts behind object oriented programming
Being retarded and not doing any real work.

> Please explain to me the core concepts behind object oriented programming.

You have bloat, so you use a concept called classes. Classes are a method of hiding bloat. They don't get rid of bloat and don't solve any problems bloat creates, they only hide it, and in addition create extra bloat that ensures you're the only person knowing how the bloat works and so you become an essential part of the program and the company.

Now you should be set.

A factory producing abstract singleton proxy beans. It's in the name.

Now can someone help me understand the C# class WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10MessageSecurityVersion by Microsoft?
github.com/Microsoft/referencesource/blob/master/System.ServiceModel/System/ServiceModel/MessageSecurityVersion.cs#L143

>yegor256.com/2014/09/16/getters-and-setters-are-evil.html
Basically an autist ranting that getters and setters should be named something different while having the exact same function as getters and setters.
>yegor256.com/2014/11/20/seven-virtues-of-good-object.html
Actually decent, if a bit pretentious.

second link made me realize how much I miss the final operator in java when working with other languages

if there's a street poo in it

Yegor's idea of good OOP is just FP.

10/10
Pretty accurate

Have to find a perfect balance of abstract code, oop, and documentation

Even as a noob in C++ you should know what OOP is it's the entire reason the language was even invented what the fuck I'm going back to bear computer fuck this

I walk around saying that I know C++ but all I know about it is pointers and references.

this is based
holy shit i knew it was bad but not like this! NOT LIKE THIS!
as for an explanation: this is just versioning for different types of MessageSecurityVersion object whatever the fuck that is, implementation is a bit retarded though cause of a couple of issues. first the naming scheme is fucking strange, second the base class returns subclass instances i've actually never seen anything like that before it's bizzare, third why the fuck are they classes in the first place, all they do is literally return a set of variables, mostly strings or simple objects (which probably end up only returning strings or ints anyway), just make it a fucking dictionary what the fuck?

Attached: 20.png (128x128, 31K)

How Java implements OOP is garbage and you should avoid it at all cost.

the purpose of OOP is to divide and conquer, stop using buzzwords to confuse other first years

Attached: 02ECDF76-4503-40CD-B18A-F642B0B6CF0C.png (415x302, 215K)

>write classes
>you are able to create instances of those classes
>you can call methods on those classes
>they will run only on that object you call them on

What does the fox says?

Attached: b9616e3852fbd6e4799d91e95c4ed86c.jpg (540x617, 43K)

what to learn instead?

Lisp or Smalltalk

Attached: OOPD.png (1940x970, 100K)

javascript

Oop is poo backwards....

OOPajeets eternally btfo

Attached: serveimage.jpg (711x900, 80K)

Kon, kon.

Did you know? In france, guns discharge "pan, pan" and robbers laugh "hin, hin".

>divide and conquer
>stop using buzzwords

topkek

OOP is POO in Spanish too.

If yoy want to learn pure OOP, learn Smalltalk as opposed to Java

Attached: image0-1.png (1334x750, 3.98M)

>C++ noob

C, Python, Bash

>divide and conquer
>buzzword

the absolute state of script kiddies anno current year

>Please explain to me the core concepts behind object oriented programming.
corporate thinking applied to programming.
If you like making your life difficult for no reason then you already have the mindset for oop, just read wikipedia page that's more than enough.

// OO
ssh = new SSHConnection(connectionParams)
ssh.open()
ssh.sendStuff(...)

// no bloat hotness zoomer way
void * handle = my_ssh_library_ssh_set_params(¶ms)
int retcode = my_ssh_library_ssh_open_connection(handle)
if (retcode^42==0) goto panic
my_ssh_library_ssh_sendstuff(handle, ...)

NEVER EXPOSE SHIT

Attached: 1559989433956.png (1948x858, 152K)