Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef FILLE1_H
- #define FILLE1_H
- #include "mere.h"
- class fille1 : public mere
- {
- public:
- fille1();
- int m_fi;
- int display(int x);
- private :
- int m_fiprivee;
- };
- #endif // FILLE1_H
- #include "fille1.h"
- #include<iostream>
- fille1::fille1()
- {
- std::cout << "constructor fille1" << std::endl;
- }
- int fille1::display(int x)
- {
- std::cout<< x << "print du int membre" << std::endl;
- }
- #include <iostream>
- #include <mere.h>
- #include <fille1.h>
- using namespace std;
- int main()
- {
- fille1 test_f1;
- test_f1.m_fi = 5;
- test_f1.m_fiprivee = 10;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement