Re: OOP Features (was euFAQ request for comment)
- Posted by rforno at tutopia.com Apr 11, 2002
- 359 views
Mike: Do you have an idea of how a program written using Diamond fares against a Java program for the same machine, regarding performance? This is not for me, but for a guy here that I am trying to convince to try Euphoria. Regards. ----- Original Message ----- From: "Mike Nelson" <MichaelANelson at WORLDNET.ATT.NET> To: "EUforum" <EUforum at topica.com> Subject: Re: OOP Features (was euFAQ request for comment) > > Ray, > > Diamond provides polymorphism, (single) inheritance, constructors, copy > constructors, and destructors. The constructors and destructors are written > and called as normal methods--this allows for error handling as no new > object is created or needs to to be deleted if the constructor fails. Also > destructors can take parameters and have different behavior in different > circumstances. Try my approach o constructors and destructors and I think > you will like it. > > Additional features: > > Java-style OOP with abstract and final classes and interfaces. > Method overloading. > Public, protected, and private access to properties and methods. > Properties have separate read and write access. > Full exception handling including exception-throwing type checks. > > -- Mike Nelson > > > >