OUTSIDE FUNCTION DEFINATION

#include<iostream.h>
#include<conio.h>
class demo
{
 int i;
 public:
 void disp();
};

//outside defination
void demo :: disp()
{
 for(i=1;i<=10;i++)
 {
  cout<<" "<<i;
 }
}
void main()
{
 clrscr();
//d is object
 demo d;
 d.disp();
 getch();
}

No comments:

Post a Comment

Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II

Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II :   1) Which of the following is the extension of Not...