Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Example program
- #include <iostream>
- #include <string>
- using namespace std;
- class One{
- public:
- One(){
- cout<<"One 111111";
- }
- void myfunction(){
- cout<<"Hello from Class One myfunction....bla bla bla";
- }
- };
- class Two {
- public:
- void TestingMethod(){
- cout<<"Testing 123 \n";
- }
- };
- class Three : public One, public Two {
- public:
- Three(){
- cout<<"Class Two Constructor running!";
- }
- void myfunction(){
- cout<<"Class 3....";
- }
- };
- int main()
- {
- Three t;
- t.myfunction();
- t.TestingMethod();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement