Return Styles: Pseud0ch, Terminal, Valhalla, Blue Moon.

Pages: 1-

What's the difference between these?

Name: Anonymous 2017-09-04 0:19


public class Foo {
public abstract void A();
public abstract void B();
}
public class Bar extends Foo {
public void A() {
...
}
public void B() {
...
}
}


and


interface Foo {
public void A();
public void B();
}
public class Bar implements Foo {
public void A() {
...
}
public void B() {
...
}
}


well?

Name: Anonymous 2017-09-04 0:41

What programming language is this?

Name: Anonymous 2017-09-04 0:43

>>2
beats me dude

Name: Anonymous 2017-09-04 2:25

>>2
Looks like Java

Name: Anonymous 2017-09-04 2:31

That the methods are implicitly or explicitly abstract?
There are definitely other differences. Read your docs.

Name: Anonymous 2017-09-04 3:16

>>5
docs my anus!!!!

Name: Anonymous 2017-09-04 7:11

assuming it's Java (I think Sepples has interfaces too now but I don't know if there's implements keyword), the big difference is that you can multiply inherit interfaces but not classes. by convention, this is a useful kludge for something like duck typing. it allows you to still have a typical enterprisey OOP class hierarchy and add weird utility functions to only certain classes.

so there can be public class Anus extends BodyPart implements Serializable, Haxable that works with your usual BodyPartFactoryFactorySingletonFlywheelBeanControllerProviderStrategy but also with a third-party AbstractThreadSafeHaxExecutorProviderCommand without each BodyPart also being Haxable (after all, we know that it's possible to HAX MY ANUS but it's not possible to HAX MY NOSE) (Horrible!)

does it mean that Java needs convoluted bullshit for things that would be easier in other languages? well yes, it does mean exactly that.

Name: What's the difference between these? 2017-09-04 7:11

extern void A() {}
extern void B() {}


and

void A() {}
void B() {}



well?

Name: Anonymous 2017-09-04 7:17

>>8
you forgot to include <void.h>

Name: Anonymous 2017-09-04 8:18

Well, in some logarithms, an interface is going to be internal to the system, but an abstract class has terminators that make it external.

Name: Anonymous 2017-09-04 9:01

what's the difference between dubs and lack of dubs?

Name: Anonymous 2017-09-04 15:27

>>10
um excuse me...

```logarithms'''???

Name: Anonymous 2017-09-04 17:07

>>12
logarithms
algorithms
just a few characters swapped

Name: Anonymous 2017-09-05 13:44

>>13
Alcorhythms

Name: Anonymous 2017-09-06 20:16

>>14
aphorisms

Name: Anonymous 2017-09-08 1:33

>>8
the definition

Name: Anonymous 2017-09-09 1:36

>>9
you mena include "void.h"

Don't change these.
Name: Email:
Entire Thread Thread List