Sample Output:
Code:
#include<iostream.h>
#include<conio.h>
class Hello{
public :
void show(){
cout<<"Hello World I Am In C++";
}
};
void main(){
Hello h; // The Object For Class hello Is "h"
h.show(); //This Is The Syntax To Create Object
getch(); //Class_Name Object_Name
}
0 comments:
Post a Comment