Re: Interfaces... & virtual destructors
BTW, shouldn't a C++ abstract class also declare a pure virtual destructor?
Isn't there any problems related to declaring a virtual destructor as pure?
Thanks in advance,
>Complementing Danny's reply, interfaces are implemented by abstract classes
>that have to be declared with all their member functions as pure virtual
>// Your header file
> // Sample accessor method (won't change state of object)
> virtual int getSomeInt() const = 0;
> // Sample mutator method (will change state of object)
> virtual setSomeInt(int toSet) = 0;
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL