0
why we use constructor?
5 Answers
+ 1
A class is basically a blueprint to create an object. To actually use a class, you have to create an object of that class first (instanciation), and for that you define a constructor setting the values of the attributes of the object. Static methods can be used without needing an object.
0
give me any example plzz
0
give me any example
0
constructor are use in java for only initialization
it just like a bucket for variable were these are defined
0
ha k thqq brother



