+ 7
<Solved>Why is my simple code resulting in error?
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....
+ 7
Jayakrishna๐ฎ๐ณ oh yes thank you very much๐คฆ๐คฆ๐คฆ๐๐๐
+ 5
Ash no all i need is rest๐
+ 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 :)
+ 3
Ash ๐ฅฒ๐
+ 3
Akhil Mishra oh good, why don't you introduce yourself in your feed? There more people might like it :)
+ 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
+ 2
Ash okay :D
+ 2
Axmatov Bos what are you trying to do? Are you trying to tag sometime? Type @ and see the magic
+ 2
Quoi Runtime ๐ง๐
+ 2
Constructor doesn't have a return type
Only
public ClassName()
{
}
+ 2
Lawrence Mauku tnx i got it๐๐
+ 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.
+ 1
Gaurav Dixit ๐ฎ๐ณ oh yeah thank you :)
+ 1
void constructors do not have a return type. Remove it to make it an ordinary function
+ 1
You need more practice
0
I see that the error messages in Python and C++ make much more sense than in Java.
0
For game design course
0
Can some tell