Programming ,Diamond problem solved in Naruto style ..Check out!!

in programmin •  7 years ago  (edited)

HEY STEEMIT.

Solved Diamond Problem(shinobi)lolx.

made in C++ ;

PROGRAM BODY:

#include <iostream>

#include <string>

using namespace std;

class hagroma{

public:

    hagroma(){

    cout<<"huga clan have byukagan keki genkai (the hromo's half)"<<endl;

    }

    void a(){

    cout<<"huga clan have byukagan keki genkai."<<endl;

    }

};

class uzumaki:virtual  public hagroma{

public:

    uzumaki(){

    cout<<"uzumaki are hagaroma inherited specifically they are ashura's decendent"<<endl;

    }

    void b(){

    cout<<"uzumaki are hagaroma inherited long and strong life line is keki genkai"<<endl;

    }

};

class senju :virtual public hagroma{

public:

senju (){

cout<<"senju are also hagaroma they too are ashura's decendents."<<endl;

}

void d(){

cout<<"senju are also hagaroma inherited extensive streangth is kakki genkai."<<endl;

}

};

class boruto: public senju,public uzumaki{

public:

    boruto (){

    cout<<"in actual boruto's father naruto is from namikaza clan so he have huga and namikaza blood"<<endl;

    }

    void c(){

    cout<<"boruto is a decendent of both uzumaki and hyuga clan he have unique kekki genkai."<<endl;

    }

};

int main (){

boruto ka;

ka.a();

ka.b();

ka.d();

ka.c();

}

I KNOW THE FAMILIES AND KEKKI-GENKAIS ARE BIT MIXED UP SO SORRY  😂 😂 😂 .

  I hope guys you liked it.   

    follow me @learnandgrow   

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

I really love Naruto!

thank you everyone.

This post has received a 3.81 % upvote from @boomerang thanks to: @learnandgrow

@boomerang distributes 100% of the SBD and up to 80% of the Curation Rewards to STEEM POWER Delegators. If you want to bid for votes or want to delegate SP please read the @boomerang whitepaper.

thanks boomerang

oyee you are doing good.. golu