New an error is reported as follows:
error: invalid new expression of abstract class type XXX
Reason:
the subclass does not fully implement the pure virtual function of the parent class, that is, some functions in the parent class are not implemented in the subclass. The first line of error will prompt which function is not implemented.
Solution:
delete the pure virtual function not implemented in the parent class or implement it in the child class
Read More:
- [Solved] SyntaxError: Invalid regular expression: invalid group specifier name
- [Solved] “Field pet in XXX.HelloController required a bean of type ‘XXX.Pet‘ that could not be found.“
- How to Solve Error Swift 4 Expression type ‘@value CGRect’ is ambiguous without more context
- SQL Server Error: Arithmetic overflow error converting expression to data type int.
- [Solved] Springboot Startup Error: Consider defining a bean of type ‘XXX’ in your configuration.
- [Solved] ibatis.builder.BuilderException: Error parsing Mapper XML: Could not resolve type alias ‘XXX‘
- Linux C++ Error: invalid use of incomplete type [How to Solve]
- [Solved] Notwritablepropertyexception: invalid property ‘mapperhelper’ of bean class
- [Solved] Unreal Engine Error: Widget Blueprint could not be loaded because it derives from an invalid class
- [Solved] Python2 Install tensorflow Error: class DescriptorBase(metaclass=DescriptorMetaclass), SyntaxError: invalid syntax
- [Solved] Eslint error: /xxx/components/xxx import should occur after import of /xxx/utils/xxx
- [Solved] NRM Error: error code: ‘err’_INVALID_ARG_Type ‘
- Error:scalac: missing or invalid dependency detected while loading class file ***
- [Solved] Failed to bind properties under ‘spring.datasource.type‘ to java.lang.Class<javax.sql.DataSource>
- [Solved] Git error: inflate: data stream error (invalid block type) error: corrupt loose object
- maven Error: Element ‘dependency’ cannot have character [children], because the type’s content type is
- [Solved] Android Develop Error: xxx does not have a NavController set on xxx
- [Solved] Could not resolve placeholder ‘XXX‘ in value “${XXX}“
- Libtorch Error: Expected object of type Variable but found type CUDALongType for argument #2 ‘index’