Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abstract Class #15

Open
jimin-kiim opened this issue Dec 15, 2022 · 1 comment
Open

Abstract Class #15

jimin-kiim opened this issue Dec 15, 2022 · 1 comment

Comments

@jimin-kiim
Copy link
Owner

No description provided.

@jimin-kiim
Copy link
Owner Author

jimin-kiim commented Dec 15, 2022

  • contains at least one pure virtual function
  • providing uniform interface without implementation is the purpose
    • to deal with a number of different derived classes
    • interface reuse
  • delegates implementation responsibility to the derived classes
  • every derived class of an abstract class must implement the inherited pure virtual functions if objects are to be created from it
  • cannot make an instance. no objects of an abstract class can be created
    • but the pointers and references to an abstract class are still legal.
  • can only be used as a base class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant