#Confused with the syntax
1 messages ยท Page 1 of 1 (latest)
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
i dont quite follow what ur question is tbh
ur saying ur confused about extends?
but ur code doesnt have any extends in it
Yes it's similar to js extends
what is going on under the hood
public Product product syntax in inventory class
Oh! it's a class field so what did you mean by type of Product
In java you have to give types to variables
think about a Person. it has perhaps two attributes. a String name and an int age
attribute = field = member = property
It's not like js where you can put anything in a variable
java has a strict type system. each variable has a fixed type/class
Yeah java confusing me sometimes
but java is way better
than js shit
ull get used to it ๐
Yep Thank you @spring hedge and @oak pilot
another small question..should I learn kotlin or java to build android apps
isnt android kotlin only?
(i dont know)
the good thing about kotlin is that its put on top of java. so u have everything available that java has as well
and the approach to coding is the same
syntax is similar, but a tad different
I'm asking stupid questions sorry..I have to do some research about this..I'm completely new to java
sorry
You can use java but it's not advised
So that means i can build apps using java without kotlin..I got my answer Thank you @oak pilot
no worries. thats what this server is for, after all
there are no stupid questions, only stupid people 
Closed the thread due to inactivity.
If your question was not resolved yet, feel free to just post a message to reopen it, or create a new thread. But try to improve the quality of your question to make it easier to help you ๐