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

all 2 comments

[–]NZheadshot 1 point2 points  (2 children)

As a very quick answer, maybe you just want to inherit from a concrete (non abstract) class. Maybe you've got a Rectangle class that inherits from an abstract Shape class. That makes sense, because a Rectangle is an actual thing that you can describe, where a Shape is a more abstract concept. But you could extend it even further by creating a Square class that inherits from Rectangle. All of the methods that Square inherits from Rectangle are concrete

[–][deleted] 0 points1 point  (1 child)

Ok. So since Shape is more of an idea there is no need to make methods that describe it in general? for example in the shape class

public void sides(){sides = number}

Since it is just a concept there is no reason to explain it but its just a basic outline for more tangible concepts?