abstract! class! passing?
please look at these (contradictory?) statements:
If anyone tries to make an object of an abstract class, the compiler prevents them.
Note that pure virtual functions prevent an abstract class from being passed into a function
by value.../Thus, it is also a way to
prevent object slicing (which will be described shortly). By making a
class abstract, you can ensure that a pointer or reference is always
used during upcasting to that class./
a class to be passed ???
Could someone tell me how to pass a class? (especially abstract one)
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