Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 143358

Java is a high-level, platform-independent, object-oriented programming language originally developed by Sun Microsystems. Java is currently owned by Oracle, which purchased Sun in 2010.

15 votes

Which is the better way to call a method that is only available to one class that implements...

Is it a good coding style? From my point of view neither of your versions is. First having to call setQuality before letDoIt can be called is a temporal coupling. You're stuck viewing DoItThisWay …
Paul Kertscher's user avatar
1 vote
Accepted

Should I not use inheritance when I need subtype cast/instantiation from basetype?

but as you can see, there's no reason to use inheritence in this case at all, since we won't be accessing super You are right that there is no point in making SubTypeX inherit from BaseType, but …
Paul Kertscher's user avatar
6 votes

Are API-changes expected in beta releases?

To cite from Semantic Versioning 2.0.0 Major version zero (0.y.z) is for initial development. Anything may change at any time. The public API should not be considered stable. Hence, if you talki …
Paul Kertscher's user avatar