We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Inheritance Introduction
Inheritance Introduction
Sort by
recency
|
97 Discussions
|
Please Login in order to post a comment
Here is Inheritance Introduction problem solution in C++ - https://programmingoneonone.com/hackerrank-inheritance-introduction-solution-in-cpp.html
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; }
Is this what Inheritance in C++ for?? Really?
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