Friday 30 December 2011

Re: ||| VuHelp4U ||| CS304 3rd Assignment Solution Required




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

using namespace std ;

class User
{
private:
string d, n, add, st ;
public:
User(string ud, string un, string ua) ;
~User();

void setd(string ud) ;
void setn(string un) ;
void setadd(string ua) ;

void verifyUser() ;
};




User::User(string ud, string un, string ua)
{
d = ud ;
n = un ;
add = ua ;
st = "userClass" ;
}

User::~User()
{
cout << "userClass Destructor" ;
}

void User::setd(string ud)
{
d = ud ;
}

void User::setn(string un)
{
n = un ;
}

void User::setadd(string ua)
{
add = ua ;
}


void User::verifyUser()
{
cout << "User ........" << endl ;
}







class Member:public User
{

private:
string p ;
public:

Member(string ud , string un , string ua , string up);
~Member() ;
void setP(string up) ;
void verifyUser () ;

};





Member::Member(string ud, string un, string ua , string up):User(ud, un, ua )
{
p = up ;
}

Member::~Member()
{
cout << "This is Member class Destructor ! " << endl ;
}


void Member::setP(string up)
{
p = up ;
}

void Member::verifyUser ()
{
cout << "member user ...... " << endl ;
}




class Administrator:public User
{

private:
string ap ;

public:

Administrator(string ud, string un, string ua, string up);
~Administrator() ;

void setAP(string up) ;
void verifyUser () ;

};


//============================

Administrator::Administrator(string ud, string un, string ua , string up):User(ud, un, ua )
{
ap = up ;
}

Administrator::~Administrator()
{
cout << "Admin Destructor" ;
}


void Administrator::setAP(string up)
{
ap = up ;
}

void Administrator::verifyUser ()
{
cout << "admnistrator" << endl ;
}



int main()
{



User a("", "", "") ;
Member b("", "", "","");
Administrator c("", "", "","");

a.verifyUser() ;
b.verifyUser() ;
c.verifyUser() ;



getch();
}
ye mila he lakin  complete nahi he 

On Fri, Dec 30, 2011 at 7:14 PM, Nadeem Abbas <nadeempomy@gmail.com> wrote:
Moaaz Bhai please send cs304 3rd assignment solution. today is extended day

On 12/30/11, mc100402546 Zohaib Tasawar <mc100402546@vu.edu.pk> wrote:
> Sehrish yr Aap mj OOP ki assignment ka solution send kr do, main aap ko
> cs301 or cs403 ka solution send kr doga, plz hurry
> my email id is
> zohaib.tasawar@gmail.com
>
> --
> To post to this group, send email to vuhelp_pk@googlegroups.com
> To unsubscribe from this group, send email to
> vuhelp_pk+unsubscribe@googlegroups.com
>
>
> Group Rules Vuhelp4u
> 1- Sharing of Video songs links, movies links, dramas links are not allowed
> in study group. Only Islamic and general information Video links allowed.
> 2- Phone no. sharing is not allowed in the group.
> 3- SPAM, Advertisement, and Adult messages are NOT allowed and that member
> will be behaved strictly.
> http://groups.google.com/group/vuhelp_pk?hl=en_US
>

--
To post to this group, send email to vuhelp_pk@googlegroups.com
To unsubscribe from this group, send email to vuhelp_pk+unsubscribe@googlegroups.com


Group Rules Vuhelp4u
1- Sharing of Video songs links, movies links, dramas links are not allowed in study group. Only Islamic and general information Video links allowed.
2- Phone no. sharing is not allowed in the group.
3- SPAM, Advertisement, and Adult messages are NOT allowed and that member will be behaved strictly.
http://groups.google.com/group/vuhelp_pk?hl=en_US



--


"Tum acha karo or zamana tmko bura samjhe ye tmhare haq mein behtar hy,
bajaye is k tum bura karo or zamana tmko acha samjhe"
( Hazrat Ali  Radiallahu Ta'ala Anh )




--
To post to this group, send email to vuhelp_pk@googlegroups.com
To unsubscribe from this group, send email to vuhelp_pk+unsubscribe@googlegroups.com
 
 
Group Rules Vuhelp4u
1- Sharing of Video songs links, movies links, dramas links are not allowed in study group. Only Islamic and general information Video links allowed.
2- Phone no. sharing is not allowed in the group.
3- SPAM, Advertisement, and Adult messages are NOT allowed and that member will be behaved strictly.
http://groups.google.com/group/vuhelp_pk?hl=en_US

No comments:

Post a Comment