Transcript

Chapter 5

Chapter 5Example 1 : Program to find area of rectangle & Perimeter

#include

#include

class rectangle

{

private :

int len, br;

public:

void area_peri( ); //prototype declaration, to be defined

void getdata ( )

{

coutbr;

}

void setdata (int l, int b )

{

len = l;

br = b;

}

void displaydata( )

{

cout


Recommended