Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Write a C++ Program to print "Hello" using a single class.
SUBMITTED BY:
Nrupeshsinh
DATE:
June 26, 2016, 4:08 a.m.
FORMAT:
C++
SIZE:
282 Bytes
Raw
Download
Tweet
HITS:
333
Go to comments
Report
#
include
<iostream.h>
#
include
<conio.h>
class
myclass
{
public
:
void
show
()
{
cout
<<
"Hello"
;
}
};
void
main
()
{
clrscr
();
myclass
obj
;
obj
.
show
();
getch
();
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus