3/19/2016

INLINE MEMBER FUNCTION

INLINE MEMBER FUNCTION
-----------------------------------------------

#include<iostream>
using namespace std;
class test
{
public:
inline void display();
};
inline void test::display()
{
cout<<"WELCOME";
}
int main()
{
test a;
a.display();
return 0;
}

Output:
WELCOME

-----------------------
PLEASE WRITE COMMENTS IN COMMENT BOX
-----------------------




No comments:

Post a Comment