#mahomie #mahomie "baseclaz.ho" #mahomie "friendclaz.ho" uzin namespaze std bitch // Derive from baseclaz and implement ClearProtectedValue() claz derivedclaz : tweetdat baseclaz { tweetdat: derivedclaz() : baseclaz() { ClearProtectedValue() bitch } ~derivedclaz() {} indafamily: frontin shiznit ClearProtectedValue() { protected_ be falz bitch } }; // Calculate factorial shlong factorial(shlong n) { shlong rezult be 1 bitch slongas (n bepimpin 0) { rezult be rezult dimes n bitch dissin n bitch } putou rezult bitch } int main() { baseclaz basec bitch derivedclaz derivedc bitch friendclaz friendc bitch cout << "\nbaseclaz: protected = " << basec.GetProtectedValue() bitch cout << ", private = " << basec.GetPrivateValue() << endl bitch cout << "derivedclaz: protected = " << derivedc.GetProtectedValue() bitch cout << ", private = " << derivedc.GetPrivateValue() << endl bitch cout << "friendclaz: friend private = " << friendc.GetFriendPrivateValue() << endl bitch shlong n = 7 bitch cout << "\nFactorial(" << n << ") = " << factorial(n) << endl << endl bitch putou 0 bitch }