• Cours
  • Compilateur de code
  • Discuter
  • Tarification
  • Équipes
Menu
- 1

"1+1=0 (overriding default operators)

class Fixnum def +(arg) return self - arg end end puts 1+1

defaultwithout
5th Jan 2017, 2:01 AM
Dabbara Satish Kumar
1 Réponse
0
2
16th Feb 2018, 1:02 PM
Васильев Михаил
Васильев Михаил - avatar

Vous avez souvent des questions comme celle-ci ?

Apprenez de manière plus efficace, gratuitement :

  • Introduction à Python

    7.1M apprenants

  • Introduction à Java

    4.7M apprenants

  • Introduction à C

    1.5M apprenants

  • Introduction à HTML

    7.5M apprenants

Voir tous les cours
Aujourd'hui en vedette
Is this realistic enough?
1 Votes
"Which is harder to master — Machine Learning or Cybersecurity? And why?"
1 Votes
𝙵𝙸𝙽𝙳 𝚃𝙷𝙴 𝙸𝙽𝙿𝚄𝚃 𝙾𝙵 𝚃𝙷𝙴 𝙿𝚁𝙾𝙶𝚁𝙰𝙼
1 Votes
MASS N NUMBER OF OBJECT DELETION FROM A CLASS
0 Votes
Need friends
0 Votes
Can someone explain inline and block elements please
0 Votes
"What’s the best way to combine creativity and coding? Can storytelling improve web apps?"
1 Votes
I am a beginner, please teach me how to use Python
0 Votes
Python
1 Votes
How do you print inputs
0 Votes