Can an abstract class constructor be used t ocreate an object of the abstract class?Can an abstract class constructor be used t ocreate an object of the abstract class?
You can not create an instance of an abstract class. You must create a descendant that overrides any virtual functions in the abstract class. (In Java those would be abstract functions, but the concept still holds.)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment