Can we have a virtual static method ? (c++) [duplicate]

No. static on a function in a class means that the function doesn’t need an object to operate on. virtual means the implementation depends on the type of the calling object. For static there is no calling object, so it doesn’t make sense to have both static and virtual on the same function
.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)