Keresés

Részletes keresés

nagya Creative Commons License 2004.03.29 0 0 2
Természetesen html-ben:
Bless(std::vector<TPeople> &);
nagya Creative Commons License 2004.03.29 0 0 1
Esetleg valami ilyesmi?


class TGod;
enum TOfficer {Caiaphas, Pilate, Herod};

// ebből volt egy pár abban az időben
class TProphet {
//...
public:
virtual void BlessPeople(std::vector &) = 0;
};

class TJesus: public TProphet {
friend TGod; // hát, ez nem az eddig ismert viszony...
private:
void MakeLoveWith(TPerson &); // erről nem írnak a feljegyzések...

public:
// ezekről annál inkább
void HailCripples();
void WalkOnWater(...);
// ...
void DebateWith(const TOfficer &);
};

YaMo Creative Commons License 2004.03.27 0 0 0

=)

Előzmény: KoporShow (-)
KoporShow Creative Commons License 2004.03.25 0 0 topiknyitó
Ezt talaltam a neten:

Q: Did Jesus extend God, or did he just implement a Godlike interface?

A: He can't be a descendant. God implements the Singleton pattern to ensure there are no duplicates of him. Since Singleton, if properly implemented (and I think we can surely assume that God's implementations are always flawless), also extends to subclasses, there could be no instance of Jesus, even if the class were declarable. So it may be best to assume that God is also a final class.

I'd say Jesus uses the Proxy pattern to give people some sort of limited access to God by delegation. You could also see him as the stub object used to invoke a remote procedure call on God. Despite the seemingly matching name, Jesus does not implement the Visitor pattern. See the GOF book.

Note that, even without Jesus, you can always initiate a client-server-communication with God bthrough a special form of message passing called "praying". Fun is, most people never get an acknowledge for the messages they've send, let alone a response.

Very rarely people get messages from God without sending Him a message first. To do this, you need to implement the Prophet interface and register with God as an Observer.

Ha kedveled azért, ha nem azért nyomj egy lájkot a Fórumért!