Thursday, October 3, 2013

Multiple Hierarchical Inheritance C++ Program ( Gold, Cash, Properties )

#include<conio.h>
#include<iostream.h>

class MFMother
{
    double gold,properties;
    public:
    double togold,toopro;
    void mgetdata()
    {
        cout<<"\nEnter GMother's Details ";
        cout<<"\nEnter Gold in Kg :";cin>>gold;
        gold = gold*30200;