0
About hiritage in Java.
The problem was i didnt know how to extend a superclass constructor to subclasscontructor. I saw this. Public namemethod(arg,arg1){ super(scarg,scar); This.var1 = arg; This.var2 = arg1; } Thats how to make It work. subclasscontructor hace to use SUPER WORD inside method to build a complete object. Referrence: scarg means super class arg.
3 Antworten
+ 4
I think I understand what your asking, hopefully this helps. If I got it wrong, sorry, please clarify
https://code.sololearn.com/c39ejXQWGE0Z/?ref=app
+ 3
Can you re-word it? It's kinda difficult to understand what you're asking.
+ 1
Sure