OOPC Practical 1

Practical : 1
Subject : Object Oriented Programming with C++

Aim : C++ Program to print “Hello World”

Source Code :
#include<iostream.h>
#include<conio.h>
class person
{
public:
void display()
{
cout<<"hello world";
}
};
void main()
{
person p;
p.display();
getch();
}Output :

Pratik Boghani

Author & Editor

Life is all about the next step.

0 comments:

Post a Comment