python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Why do I not need the extra lines of code? Ruby Codeacademy
I'm working on Learn Ruby in Codeacademy (OBJECT-ORIENTED PROGRAMMING II: Private! Keep out!).
Why don't I need to include '(id_name)' after the 'def id' method for the final section?
My attempt is de...
user220150
Votes: 0
Answers: 1
Python accessing parent class variable as instant variable in child class
I'm trying to access instance variables of a parent class as class variables in a child class.
The purpose is that the parent class will have a lot of child classes which all need to have the same str...
Knoerifast
Votes: 0
Answers: 1
python instance variables initialization code smell?
In the two self.load_file() methods below, the first one has no arguments and uses the instance variables self.a and self.b, and the second one uses a and b directly as input arguments, and load_file ...
des224
Votes: 0
Answers: 2
Ruby instance variables problem using '==' in if condition
I am creating a Account which should display,withdraw the balance only when the correct is passed as parameter.I am facing a issue in which on passing the correct pin, the balance is not shown instead...
Yashveer Nathawat
Votes: 0
Answers: 2