+ 7

<Solved>Why is my simple code resulting in error?

https://code.sololearn.com/cw5iqvh0WQyv/?ref=app

27th Jan 2022, 12:59 PM
Rishi
Rishi - avatar
22 Answers
+ 20
Remove void from public void Data(String Aadharno){ constructor don't have any return type, if you add, then it's no longer a constructor, just a normal method then....
27th Jan 2022, 1:05 PM
Jayakrishna 🇮🇳
+ 7
Jayakrishna🇮🇳 oh yes thank you very much🤦🤦🤦👍👍👍
27th Jan 2022, 1:07 PM
Rishi
Rishi - avatar
+ 5
Ash no all i need is rest😌
27th Jan 2022, 1:39 PM
Rishi
Rishi - avatar
+ 4
Ana Hellstrand you got doubts? Create a new question and ask all your doubts there. We'll try our best to satisfy you with our answers :)
28th Jan 2022, 3:04 PM
Rishi
Rishi - avatar
+ 3
Ash 🥲👍
27th Jan 2022, 1:21 PM
Rishi
Rishi - avatar
+ 3
Akhil Mishra oh good, why don't you introduce yourself in your feed? There more people might like it :)
29th Jan 2022, 2:45 AM
Rishi
Rishi - avatar
+ 3
Abhishek Rathod i don't think there's any game designing course in Sololearn. You can always get a free one in the internet or YouTube
29th Jan 2022, 6:40 AM
Rishi
Rishi - avatar
+ 2
Ash okay :D
27th Jan 2022, 1:43 PM
Rishi
Rishi - avatar
+ 2
Axmatov Bos what are you trying to do? Are you trying to tag sometime? Type @ and see the magic
27th Jan 2022, 3:02 PM
Rishi
Rishi - avatar
+ 2
Quoi Runtime 🧐🙌
28th Jan 2022, 2:25 PM
Rishi
Rishi - avatar
+ 2
Constructor doesn't have a return type Only public ClassName() { }
28th Jan 2022, 6:16 PM
Gaurav Dixit🇮🇳
Gaurav Dixit🇮🇳 - avatar
+ 2
Lawrence Mauku tnx i got it👌👍
29th Jan 2022, 6:39 AM
Rishi
Rishi - avatar
+ 1
Can't get to write code in 20.1 quiz. There is more questions and i can put just one at a time . So can't go on forward.
28th Jan 2022, 2:56 PM
Ana Hellstrand
+ 1
Gaurav Dixit 🇮🇳 oh yeah thank you :)
29th Jan 2022, 2:15 AM
Rishi
Rishi - avatar
+ 1
void constructors do not have a return type. Remove it to make it an ordinary function
29th Jan 2022, 6:27 AM
Lawrence Mauku
Lawrence Mauku - avatar
+ 1
You need more practice
29th Jan 2022, 9:03 AM
Nelson Tesh
0
I see that the error messages in Python and C++ make much more sense than in Java.
28th Jan 2022, 2:07 PM
Œ ㅤ
Œ ㅤ - avatar
0
For game design course
29th Jan 2022, 5:40 AM
Abhishek Rathod
0
Can some tell
29th Jan 2022, 5:41 AM
Abhishek Rathod