« first day (94 days earlier)      last day (222 days later) » 

04:09
@Zoe Hey
Good Morning People :D
Zoe
Zoe
04:40
Morning @MukeshRana!
how was the weekend?
Zoe
Zoe
05:23
Good. Well, 'til it ended anyways xD
How was your weekend?
it was good though I slept most of the times lol. It's high alert in our city for next 2 days because as per weather experts, we can face a mini tornado today and tomorrow
Zoe
Zoe
05:52
Wow
And I am eagerly waiting for that
06:29
Morning all living things
@MukeshRana :O you must go back to mars than
I am on Mars already
nice (y)
 
1 hour later…
08:18
where is @Kuma
Zoe
Zoe
//shrug
¯\_(ツ)_/¯
08:40
@MukeshRana how is weather over there?
are you flying in air ?
it's nice and cool :D
hello to all :)
Zoe
Zoe
08:56
Morning @Ramona, @AshuKumar and @InsaneCat
Kuuumaaa is heere
@AshuKumar
morn
Zoe
Zoe
Morning @Kuma
morn dogo
yooooooooooooooooooooooooo
hey man @InsaneCat
hows your mother ?
09:01
Intent intent = CheatActivity.newIntent (QuizActivity.this, answerIsTrue); - what does this code say? from CheatActivity get method newIntent which data is in QuizActivity in answerIsTrue. Is that right? :)
Zoe
Zoe
I assume it creates a new intent with answerIsTrue as an extra in the entent
yes :)
hansu
yeeee
09:03
so am i correct above, @Zoe? :)
Zoe
Zoe
Yeah
uff :) slowly getting there :)
thanks :)
She is completely alright, her report is quite ok and, there is not a single iota of cardiac problem.
@Kuma
@InsaneCat wow great! glad to hear man :3
follow medicines of our family dr.
No blockge
09:05
great
now you can relax cat
i mean relax from beeing scared about her
Zoe
Zoe
@InsaneCat That's great! ^^
Zoe
Zoe
@Kuma lol
09:07
user image
2
ok enough
Zoe
Zoe
@Kuma NOOOO! All those stacktraces lost furever :<
i was looking for a new flat
@Zoe x(
and put an announcment on a page
looking for flat ,size , cost and so on
expecting some one would write me that he/she has a fitting flat so i can visit
instead a woman asked me if i would be willing to share a flat with her
lol
now i ll met with her and we will visit the flat today
lets see
its like double the size than the one i was looking for
but its so hard to get a flat , so you have to take every chance
09:41
@InsaneCat good :)
@Zoe morning
@Ramona morning
 
2 hours later…
11:47
@MukeshRana
//zorocat
sleepy bot
//summon @Alisha
kinda nervous man
dont know this woman
@InsaneCat
//zorocat
12:06
Zoe
Zoe
@Kuma lol
hehe
@Zoe Learned.
12:51
ha ha
lol dog cake
yeah also doggoclub
but pssshhh
 
3 hours later…
15:31
chew was quiet today
:o
 
3 hours later…
18:28
@Zoe :) looking at this code paste.ofcode.org/Za4WTukjX3gAyrBTQk3e2h .how getter isAnswerTrue 'knows' which argument from Question objects is true?
Zoe
Zoe
Getters are based on instances, and since the var isn't static it has a value assigned per instance
oh gosh, can you explain one more time ,please? :)
Zoe
Zoe
19:05
each time you call new Question() you create an instance of Question
You also pass two variables
These two vars are connected to each instance, meaning:
Question q1 = new Question(somedata, false)
Question q2 = new QUestion(someotherdata, true)
 q1.var2 != q2.var2
There is a chance they're the same though, but if it was i.e. a unique ID they wouldn't be
The getter is just a method that returns the value, meaning you can't modify the value directly (q2.var2 = blah isn't possible if var2 is private)
and equivalently, retrieving var2 isn't possible if it's private
Which is where the getters and setters come in
they're made to limit access, and i.e. make a var read only
If a var only has a getter, external classes can only retrieve the value
If it only has a setter (very uncommon) external classes can only set the value
All though it's very rare having a setter but not a getter, but having a getter and not a setter is fairly common
Having both is also common
So basically, the getter returns the value stored in i.e. q1 or q2
q1.getVar1() would return the value of var1 as stored in q1
This assumes non-static vars (static vars are instance-independent and have the same value regardless of which instance. All though most common practice for static vars is using Question.staticVar instead of questionInstance.staticVar)
reading...
plenty of reading.. just in a meantime still wonder how this default value: false works when getting this extras data .just cant get how does this data true and false is correctly read each time - line 8
19:31
(if you write sth Zoe, i will check it and continue this tomorrow. sleep well)
Zoe
Zoe
@Ramona If a returned extra is null, as in it doesn't exist, it uses the default value to avoid NPEs

« first day (94 days earlier)      last day (222 days later) »