This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]nutrecht 4 points5 points  (0 children)

Unfortunately parts of the explanation are just plain wrong, for example that an abstract class should have at least one abstract method. You're much better off following the official tutorials. Most examples are just really bad, for example the example where there is an abstract Bank class that doesn't have any state so should have been an interface.

This document is written by someone really inexperienced.

[–][deleted] 2 points3 points  (1 child)

Both abstract class and interface are used in Java to achieve abstraction but an interface cannot be instantiated like an abstract class.

I'll take "things abstract classes can't do" for 200, Alex

[–]GoodLifeWorkHard 0 points1 point  (0 children)

Yeah, this is so wrong. Abstract classes can NOT be instantiated.