Ways to show your co-programmers that some methods are not yet implemented in a class when programming in C++

后端 未结 7 1619
生来不讨喜
生来不讨喜 2021-02-15 04:02

What approaches can you use when:

  • you work with several (e.g. 1-3) other programmers over a small C++ project, you use a single repository
  • you create a class,
7条回答
  •  旧时难觅i
    2021-02-15 04:41

    You can use pure virtual functions (= 0;) for inherited classes, or more commonly, declare them but not define them. You can't call a function with no definition.

提交回复
热议问题