answersLogoWhite

0


Best Answer

class_name object_name=new class_name();

eg: A a=new A();

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the syntax in creating an object?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the required syntax for creating C arrays?

The required syntax for creating C arrays include the brackets, array size, variety length arrays, codes like std:vector, classPTR, and many more to create C arrays.


What is an object function?

A function object is a computer programming construct allowing an object to be invoked or called as if it were an ordinary function, usually with the same syntax ...


What are the basic syntax of c program?

You have to be more specific. What part of C syntax? Do you want the syntax for outputing a number or sentence, do you want to syntax for creating a array, struct, a user defined function or what? #include iostream using namespace std; int main { cout << "Hello World!" << endl; return 0; };


What is peculiar about the syntax of the line 'all you prefiguring' from sonnet 106 by William shakespeare?

The normal syntax would be to place the verb before the object: "all prefiguring you". But for the sake of the rhyme, Shakespeare has reversed the verb and object resulting in "all you prefiguring". The meaning is the same.


Difference between object declaration and object creation?

Declaration of the object involves only creating the reference variable to the object. Example: class SampleClass{ } Object Declaration: SampleClass obj1; Object Creation: Creating an object involves use of new keyword and actually allocating memory for that object. SampleClass obj2 = new SampleClass ();


What is simple creation?

For me as I understand the question, simple creation is creating a new object out of an object.


Is creating java class difficult?

No. The exact syntax may be slightly confusing at first; but you can simply copy an existing model and rename the class.


Is Instantiation is the process of creating an object from a class?

yes


What is vbnet built on?

VB.Net is a "re-imagined" syntax of the Visual Basic language, built to target the .Net CLR (Common Language Runtime). It is a fully object-oriented language with similar syntax of older VB versions.


Which best describes the structure of this sentence?

This sentence places the object before the verb.


How can you do programming in java?

The syntax of Java is largely derived from C++. Unlike C++, which combines the syntax for structured, generic, and object-oriented programming, Java was built almost exclusively as an object-oriented language. All code is written inside a class, and everything is an object, with the exception of the primitive data types (i.e. integers, floating-point numbers, boolean values, and characters), which are not classes for performance reasons.


What is a BufferedReader in java?

buffered is basically a way of creating an object