Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
// CProsessori-luokka
class CProsessori
{
public:
    int Laske();
};
Code Block
// CRAM-luokka
class CRAM
{
public:
    void Talleta();
};
Code Block
class CTietokone
{
private:
    CProsessori prossu;
    CRAM muisti;

public:
    void Suorita()
    {
        prossu.Laske();
        muisti.Talleta();
    }
};