+ 3

Is the class name MyClass compulsory

can we name the class at the start anything else other than MyClass for eg. my name

3rd Sep 2017, 2:06 PM
Simran Sharma
Simran Sharma - avatar
4 Answers
+ 5
Class names are alphanumeric names of the classes. Traditionally, all class names begin with an upper-case letter symbol and are written in PascalCasing. In MuranoPL all class names are unique. At the same time, MuranoPL supports namespaces. So, in different namespaces you can have classes with the same name. You can specify a namespace explicitly, like ns:MyName. If you omit the namespace specification, MyName is expanded using the default namespace =:. Therefore, MyName equals =:MyName if = is a valid namespace.
3rd Sep 2017, 2:11 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 5
yes u can use name other than myclass ... but aise hi style karne ke liye myClass likh dete hain ... i don't use myClass ... u can see some of my java codes i write GauravProgram in place of myClass https://code.sololearn.com/cTbSLFBTOERh/?ref=app https://code.sololearn.com/ccKOF9SAPH0P/?ref=app
3rd Sep 2017, 2:32 PM
Changed
Changed - avatar
+ 4
thank you
3rd Sep 2017, 2:32 PM
Simran Sharma
Simran Sharma - avatar
- 3
Sure you can, but it should not have any spaces...
3rd Sep 2017, 2:38 PM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar