❔ class instance creation

can any one tell me what is this method to create an instance of a class 1--> Product product = new();
13 Replies
mer_nam hai bulla rakhta hu kula
and this as well
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
mer_nam hai bulla rakhta hu kula
what about second one . like there is no type declared and that , at and and after that those statements
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
mer_nam hai bulla rakhta hu kula
sorry bro sent you a wrong screenshot
mer_nam hai bulla rakhta hu kula
check this one instead
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
mer_nam hai bulla rakhta hu kula
yeah very confused never saw this type of implementation before
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
mer_nam hai bulla rakhta hu kula
haven't wrote this code myself just following a course and really got confused in this section but i will do this once i implement it
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Accord
Accord3y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server