answersLogoWhite

0

The exact same way you instantiate a class from any of the various Java libraries: by using the 'new' keyword.

i.e

MyClass A = new MyClass();

this forces the MyClass definition to run its Constructor method, and return an instance of object of type MyClass.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you import a self created class in java?

It's the same as importing any other class: import [package name].[class name];


Does Java has any music or video downloads?

if you have a computer to look this up...... you can go and find out your self


What are the differences between objects and classes in java?

A class is basically a definition, and contains the object's code. An object is an instance of a class. For instance, there is one java.lang.String class, but you can instantiate any number of distinct java.lang.String objects (instances). While a class defines the instance variables than an object has, the instantiated object itself actually contains those variables. So to put it simply: An object is an instance of a class.


Where can you find a Java Applet tutorial?

There are a few places that a person can get a Java Applet tutorial. There are classes a person can take as well as self taught books and tutorials that a person can find online.


When was Song to Self created?

Song to Self was created in 2008.


When was The Century of Self created?

The Century of Self was created in 2008.


When was Self Worth created?

Self Worth was created in 1999.


When was The Century of the Self created?

The Century of the Self was created in 2002.


When was My Self Scumbag created?

My Self Scumbag was created in 2007.


When was I Am Self Sufficient created?

I Am Self Sufficient was created in 1976.


When was At War with Self created?

At War with Self was created in 2004.


When was For Self-Examination created?

For Self-Examination was created in 1851.