Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

C++ parent implemantation

Name: Anonymous 2010-11-29 5:46

Can /prog/ help me to solve a problem ?
Well, make it in ascii would be a huge success, but I'm not enough skilled for that, so here is a picture to describe it :
http://img51.xooimage.com/files/5/7/f/request-22f6f33.jpg

For other example, try to imagine this as pokemons : there is many species, which implements the PokemonSpecies class, and there is a Pokemon which extends on of PokemonSpecies implementation.

Name: Anonymous 2010-11-29 5:58

Those who don't understand artist-mode are condemned to reinvent it, poorly.

Also, you have to be the first obnoxious poster who's unable to articulate a simple problem without using pictures. That's refreshing.

Name: Anonymous 2010-11-29 6:04

I've learned what means obnoxious and artist-mode, thanks.

Name: Anonymous 2010-11-29 6:26

Stop forcing an OOP model.

Name: Anonymous 2010-11-29 6:57

interface Class {
   void Constructor(object args...);
   void Destructor();
}

class Object implements Class {
   Object(object props[], object values[]) {
      Constructor(props, values);
   }
   ~Object() {
      Destructor();
   }
   void Constructor(object props[], object values[]) {
      if (props.length != values.length) {
         throw new EnterpriseArgumentsExceptionException;
      }
      for (int i = 0; i < props.length; i++) {
         getClass(Object).getInstance(this).setProperty(props[i], args[i]);
      }
   }
   void Destructor() {
      object props[] = getClass(Object).getInstance(this).getProperties();
      for (int i = 0; i < props.length; i++) {
         delete props[i];
      }
   }
}

Name: Anonymous 2010-11-29 11:07

GUYS, GUYS, SO WHAT IS VIRTUAL DESTRUCTOR NEEDED FOR?

Name: Anonymous 2010-11-29 11:46

>>6
For virtual objects.

Don't change these.
Name: Email:
Entire Thread Thread List