answersLogoWhite

0

Yes. One could create a file called standalone.adb with the contents: with Text_IO; procedure Standalone is begin Text_IO.Put_Line("I am so alone"); end Standalone; and have another package in a file called package_1.ads with the contents: package package_1 is procedure Standalone; end package_1; (Not providing the body of this package in the example but obviously one is needed). At this point, we have shown that it is possible but the next question is (maybe) how would you call them. with Standalone; with Package_1; procedure My_Main_Program is begin Standalone; Package_1.Standalone; end My_Main_Program;

User Avatar

Wiki User

18y ago

What else can I help you with?

Related Questions

What is the name of sub planet of earth?

There is no sub planet of Earth. Earth is considered a standalone planet within our solar system.


Which subprogram do you use to display the source code of a stored procedure when using dbms debug?

To display the source code of a stored procedure when using DBMS_DEBUG in Oracle, you can use the DBMS_DEBUG.GET_SOURCE subprogram. This procedure retrieves the source code for a specified procedure or package and allows you to view its contents. You typically need to specify the name of the procedure and the necessary parameters to access the desired code.


How do we save packages and interface in java?

with the package name syntax: <package name> with the interface name.


Can you open a package that has your address but not your name?

Yes, you can open a package that has your address but not your name.


What is a procedure in programming and how is it used to execute a specific set of instructions within a program?

A procedure in programming is a named block of code that performs a specific task. It is used to execute a specific set of instructions within a program by calling the procedure's name in the code. This helps to organize and simplify the program by breaking it into smaller, reusable parts.


If you don't supply any access specifier with class name than which specifier it should have?

It will have the default access which means - this class will be accessible only within the current package.


What is hollie short for?

"Hollie" is a name that is not typically a shortened form of another name. It is generally used as a standalone name.


What is Leon short for?

Leon is typically a standalone name and is not commonly abbreviated or short for any longer name.


How do you execute a package in java?

You don't execute a package; you execute a class. A package is just a grouping of classes.You don't execute a package; you execute a class. A package is just a grouping of classes.You don't execute a package; you execute a class. A package is just a grouping of classes.You don't execute a package; you execute a class. A package is just a grouping of classes.


What is planned procedure to test a hypothesis called?

The name of this procedure is experiment.


What is A planned procedure to test a hypothesis is called?

The name of this procedure is experiment.


What is the package class name that Display inherits from?

A Display class in contained in this package as well... org.eclipse.swt.widgets