How to propagate friend for derived classes

No, it’s deliberately impossibile.

Is an issue by encapsulation.

Suppose to have a class “PswClass” that manage any password, that is cascade friend with other class: if I inherit from PswClass:

 class Myclass : public PswClass {
     .......
 }

In this way I can, maybe, have access to field that it would be private.

Leave a Comment

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