Can we have a Procedure in Specification but not in Package body. If yes then whats the use of it?

Questions by Sant_parkash   answers by Sant_parkash

Showing Answers 1 - 7 of 7 Answers

nidhi

  • Nov 26th, 2007
 

Yes, we can have procedure in the specification but not in the package body. The use of this is that we can write any code in that procedure later on.

  Was this answer useful?  Yes

raghu iyer

  • Jul 11th, 2011
 

Hi,
Its Not possible..... all the sub programs declared in spec must be implemented in the body. In this case these sub programs will be private for this package only.

Raghu Iyer

  Was this answer useful?  Yes

Sudhanshu

  • Jul 26th, 2016
 

Code
  1.  

  Was this answer useful?  Yes

aak

  • Sep 15th, 2016
 

No, You can add the proc in body and not declare it in the spec.. this is ok as it would mean that that proc is a private procedure but visa versa is not possible. It would give compilation error.

  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