Re: OOP Features (was euFAQ request for comment)

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu