Most Random fact

  • Christian Chat is a moderated online Christian community allowing Christians around the world to fellowship with each other in real time chat via webcam, voice, and text, with the Christian Chat app. You can also start or participate in a Bible-based discussion here in the Christian Chat Forums, where members can also share with each other their own videos, pictures, or favorite Christian music.

    If you are a Christian and need encouragement and fellowship, we're here for you! If you are not a Christian but interested in knowing more about Jesus our Lord, you're also welcome! Want to know what the Bible says, and how you can apply it to your life? Join us!

    To make new Christian friends now around the world, click here to join Christian Chat.
W

wwjd_kilden

Guest
dark choclate cake sliced in two
in the middle and on top there is cream.. consiting more or less of sugar and egg whites. ..LOTS of sugar----
 
B

Belgian_Pilot

Guest
dark choclate cake sliced in two
in the middle and on top there is cream.. consiting more or less of sugar and egg whites. ..LOTS of sugar----
Sounds more like heavens cake to me :D
 
Dec 12, 2009
3,367
4
0
not really

Fact: Trying to get in tomorrow at the clinic.

other fact: OUUUCH!
 
B

Belgian_Pilot

Guest
Brenna, when I say your are awesome, then you are!
If God says you're awesome, you definetly are!!!
 
B

Belgian_Pilot

Guest
Fact: My niece is about to arrive. I'm gonna play with her and spoil her and do lots of fun stuff with her :)
 
B

Belgian_Pilot

Guest
Thx :)

She is soooo great! I love playing with her. She discovered my mom's purse, and she had to drag it around the whole house :D
 
W

wwjd_kilden

Guest
aaawww :D


- I've forgotten how access private attributes :S (Python)
 
B

Belgian_Pilot

Guest
Sorry, I do vb, c#, c++, but no python. I'd love to help you...

I'll give it a shot: from where do you want to access it? Is it a method? Can you give an example?
 
W

wwjd_kilden

Guest
I am trying to access it from another class... (not even sue if I am supposed to be able to do that :p). This is what I've been trying:

Concert:
def__init__(self, name)
self.__name=name


Register(Person):
def__init__(self)
self.list=[]

def appendConcertName( ??):
self.list.append(Concert.__name)

:::something of that sort
 
B

Belgian_Pilot

Guest
The definition of a private attribute is that it cannot be accessed from another class. If you do want to access it, make it public!

Privat attributes can only be accessed from within it's class.
 
W

wwjd_kilden

Guest
that what counfused me, I thought thats how it is, but everyone keeps saying all attributes should be private :S
 
B

Belgian_Pilot

Guest
Only if you want them not to be available from other classes. The advantage of private attributes is that no external method can change the value without you wanting it to. So it's more error-proof. Make them private, then make methods in the same class that can change them. (these methods are public off course). This way, an other method in an other class cannot change the attribute directly (wich could lead to errors), but has to call the 'change' method of the attribute's class. And that method is well defined, wich is error proof

That's the theory :)