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
-----------------------
-----------------------------------------------
#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