Have you ever written at least one class in C++?

Stanley

 -----Original Message-----
From:   Martin Krohn [mailto:[EMAIL PROTECTED]] 
Sent:   Thursday, September 23, 1999 9:48 AM
To:     [EMAIL PROTECTED]
Subject:        Re: C++ SDK wanted!

Benefits of C++:
Imagine you can write this:

#include <StringLibrary.hpp>

static String doSomething()
{
String mystring, aux, final;
int i;
    aux = "Testing ";
    mystring = " string classes";
    final = aux + mystring;
    return final;
}

This is posible by writing a String class and overloading the "+" operator.
Benefits are obvious.



----- Original Message -----
From: John Fullerton <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 22, 1999 2:13 PM
Subject: Re: C++ SDK wanted!


> I think that it could be neat to talk about the C++ options more.
>
> For those advocating C++, as was requested, please say more about C++
benefits.
>
> My perception, without having USED C++, though having studied it, is that
it has a lineage back to Simula and benefits from considerable reasoning
about how people think and how to represent the functionality of computer
programs in programming languages. For example, the "class" is a definition
of an object. The object could be either very much like a real-world object
(in the sense of having same-name attributed and representative
functioning). For example, there could be a car object with methods like
accelerate(), signal(), and so on. Or there could be objects not so much
like a real-world object. For example, maybe window or button.
>
> That much is my proposed comment.
>
> Is the benefit of a class versus adding a "reusable file" that the class
gets used in the code only as much as its particular functions (or methods)
get called? Or is it that it is easier to remember what is in a class than
what is in a file? Or could the utility of a class go beyond one file to
include all that is needed for the functionality (though it has to be
defined within the set of classes)?
>
> Have a nice day
> John Paul Fullerton
> [EMAIL PROTECTED]
>
>
>



Reply via email to