[ create a new paste ] login | about

Link: http://codepad.org/LfOfvwOj    [ raw code | output | fork ]

C++, pasted on Dec 2:
class sample
{
   public:
   void show(int a)
   {
       cout<<a<<endl;
   }

   void show(int a,int b)
   {
      cout<<b<<endl;
   }

};

int main()

{
   sample s1;
   s1.show(3);
   return 0;
}


Output:
1
3


Create a new paste based on this one


Comments: