class rectangle
{
public:
void area(int l, int b)
{
cout<<"area="<< a;
}
};
void main()
{
rectangle r1;
r1.area(10,5); //example of message passing
}
C/C++ Programming Solutions, Notes , Old Question Solutions, SLC/SEE Preparation, University Board Exam, Old Question Solutions. PSC preparation for Computer Engineering, computer officer, computer Programmer level-7.
No comments:
Post a Comment