Inheritance Introduction

Sort by

recency

|

95 Discussions

|

  • + 0 comments
    #include <cmath>
    #include <cstdio>
    #include <vector>
    #include <iostream>
    #include <algorithm>
    using namespace std;
    
    
    class Triangle{
        public:
        	void triangle(){
         		cout<<"I am a triangle\n";
        	}
    };
    
    class Isosceles : public Triangle{
        public:
        	void isosceles(){
        		cout<<"I am an isosceles triangle\n";
        	}
      		//Write your code here.
            void description() {
                cout << "In an isosceles triangle two sides are equal\n";
            }
    };
    
    int main(){
        Isosceles isc;
        isc.isosceles();
      	isc.description();
        isc.triangle();
        return 0;
    }
    
  • + 0 comments

    Is this what Inheritance in C++ for?? Really?

  • + 0 comments

    I am using the css to add more settings to my super mario bros 3 game website and this really helped me to solve all my problems

  • + 0 comments

    Here are the solution of HackerRank Inheritance Introduction in C++ Solution

    Join Telegram Group for Updates Click Here

  • + 0 comments

    errors i get