Re: OOP Features (was euFAQ request for comment)
- Posted by Mike Nelson <MichaelANelson at WORLDNET.ATT.NET> Apr 11, 2002
- 390 views
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