i want to access the data of different classes which are inherit with another class but i dont know how i can do i have tried as below.. so help me?
here is the sample of my code..
class A{};
class B{};
class C{};
class D:public A,public B,public C{
// here i want to call friend fundition so help me?
};
What I have tried:
friend void result(Islamic,Pakstudy,Computer);// it is decler in different classes like Islamic etc.
void result(Islamic is,Pakstudy pk,Computer cm){
system("cls");
cout<<"\t\t\t\t\t\t\t RESULT OF QUIZ COMMPETATION\t\t\n\n"<<endl;
cout<<"\t\t\t\t\t\t\t Quastion Category: Islamic Study \t\t Total marks \t Obtain Marks "<<endl;
cout<<"\t\t\t\t\t\t\t Round : 1 \t\t 25 \t "<<is.ismarks<<endl;
result(Islammic;Pakstudy;Computer); //here is error ,this an other class in i want to access data but syntex error