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

14y 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 The Commanding Self created?

The Commanding Self was created in 1994.


When was Self-Inflicted created?

Self-Inflicted was created in 1997.


When was Self-Constitution created?

Self-Constitution was created in 2009.


When was For Self-Examination created?

For Self-Examination was created in 1851.


When was The Outsourced Self created?

The Outsourced Self was created in 2012.


When was Self-Explanatory created?

Self-Explanatory was created in 2000.


When was Journey into Self created?

Journey into Self was created in 1968.


When was Song to Self created?

Song to Self was created in 2008.