A
A
andwin2017-03-11 20:17:59
C++ / C#
andwin, 2017-03-11 20:17:59

How to load the code of one script into another?

How to load the code of one script into another?
For example, PHP has include();
In Java - import
A in C#;

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anvar Shakhmaev, 2017-03-11
@romanbel

using

P
Pparma, 2017-03-11
@Pparma

What does "upload" mean? If you want to use the methods of class A in class B, plus some additions or modifications, then inherit class B from class A.
If you just want to call the public method of class A in class B, then either class B must have a reference to an instance of the class Or the called method must be static.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question