C++???м?С???????к???м?е?????
???????????? ???????[ 2016/12/26 11:31:43 ] ??????????????????? C++
?????????protected??private?????????????????????????????????????????????????????????顣???????????????
????#include <iostream>
????class Person {
????public:
????Person(){};
????void eat() {std::cout << "eat ";}
????};
????//???м??
????class PublicStudent : public Person {
????public:
????PublicStudent() {}
????void study() {std::cout << "study ";}
????};
????//???????
????class ProtectedStudent : protected Person {
????public:
????ProtectedStudent() {}
????void study() {std::cout << "study ";}
????};
????//??м??
????class PrivateStudent : private Person {
????public:
????PrivateStudent() {}
????void study() {std::cout << "study ";}
????};
????void func_test(Person &p) {
????p.eat();
????}
????int main() {
????PublicStudent public_s;
????ProtectedStudent protected_s;
????PrivateStudent private_s;
????func_test(public_s); //????????м?????????????????????????????
????func_test(protected_s); //??????????????????????????????????????
????func_test(private_s); //???????м??????????????????????????????
????system("pause");
????return 0;
????}
????func_test()??????Person?????????????func_test(public_s)??????????PublicStudent???????PublicStudent???м??Person??????PublicStudent??????????Person???????е???г???????????????????????£????м?е????????????????????????ProtectedStudent??PrivateStudent?????????м?У???????????????????Person?????????????????????????????????????????????????????????????????????????????????????protected??к?private??е?????????????????????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
??C++????????????C++ lvalue??rvalueC++11????????C++???????????????C++?е?????????????????C++?????????C++???Windows????λ??C/C++???????????????????JAVA??C??C++??????????c++??python???????????????????????????????C++???????C++?е????????C++????????????????C++ ???????????????C++?????????????????????C++????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????