Call the method to presentation layer

If there is a class library called numbers and method add num.How will you call the method to presentation layer?

Questions by dhivyapriyab   answers by dhivyapriyab

Showing Answers 1 - 6 of 6 Answers

malik_malik

  • Sep 23rd, 2012
 

To call the library number you do following steps
First you declare an object of that class and then using that object you call its methods.
Example:

Code
  1. Number numobj=new Number();

  2. int res=numobj.ADD(5,9);

  Was this answer useful?  Yes

Manoj

  • Jun 24th, 2015
 

You cannot instantiate Number class.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions