Rathamon Posted December 23, 2002 Share Posted December 23, 2002 If you had to be represented as a program in some OOP language what would your methods / variables be and what class would you inherit from? Link to comment Share on other sites More sharing options...
0 neowin_hipster Posted December 26, 2002 Share Posted December 26, 2002 my declaration would look something like this: class Ryan: public CGod { public: void check_guilt(); bool mouth(); //the following are simply polymorphic functions. because they must physically exist :p double ears(); double eyes(); bool torso(); double hands(); double arms(); double legs(); double long wang; }; Link to comment Share on other sites More sharing options...
0 Glowstick Posted December 26, 2002 Share Posted December 26, 2002 class Servo : Ryan { public: double largepenis; } Link to comment Share on other sites More sharing options...
0 dacris2000 Posted January 6, 2003 Share Posted January 6, 2003 class Dacris : public Human { public: //properties bool isMale; Body body; //methods void Eat(Food food); void Sleep(double amtHours); void Walk(Point destination); void Blink(int amtTime); void Speak(char* text); bool F*ck(Human other); // returns true if successful :D bool Excrete(int TypeOfExcretion); // returns true if excretion was found and expelled bool Kill(Human other); void Die();//could also be a destructor //and so forth... }; //then... class Body { public: Eye eyes[2]; Ear ears[2]; Arm arms[2]; Leg legs[2]; Nose nose; int weightKg; int heightCm; //and so on... }; Link to comment Share on other sites More sharing options...
0 tajddin Posted January 7, 2003 Share Posted January 7, 2003 (edited) Public Class clsAereux Private xStructMe As structAereux Sub New(Optional ByVal BirthDate = "1/17/86") Me.GenerateAereux() End Sub Friend Sub GenerateAereux() Me.xStructMe = New structAereux() End Sub 'Aereux's guts: Structure structAereux Const xAppearance As String = "5'6, White-Skinned, Brown-haired, Brown Eyes" Const xBirthDate As Date = 1 / 17 / 86 : Const Age As Integer = 16 Const xNationality As String = "Spanish/Cuban/Moroccan-American" Const xInterests As String = "Engineering, Programming, Science/Technology, Math, Philosophy" Const xProgrammingLanguages As String = "VB, VB.NET, C#, C++.NET" Const xLocation As String = "CA, United States of American" End Structure Sub Dispose(Optional ByVal DateOfDeath = "Unknown") End 'Death End Sub End Class Edited January 7, 2003 by aereux Link to comment Share on other sites More sharing options...
0 twist Posted January 7, 2003 Share Posted January 7, 2003 public boolean class Twist { if(bored()) { return true; } } public boolean bored() { return true; } Link to comment Share on other sites More sharing options...
Question
Rathamon
If you had to be represented as a program in some OOP language what would your methods / variables be and what class would you inherit from?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts