answersLogoWhite

0

Write a program to create object without name?

Updated: 12/18/2022
User Avatar

Awadheshkr

Lvl 1
11y ago

Best Answer

You cannot create an object without a name. The name identifies the object. If you really mean anonymous classes, then the following is an example of an anonymous class (a class with no identifier):

typedef struct

{

unsigned x;

unsigned y;

} POINT;

There are some restrictions with regards anonymous classes:

  • They can have no constructors or destructor.
  • They cannot be returned from functions.
  • They cannot be passed as type-checked arguments to functions.
User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to create object without name?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a program to create a maze?

this is to write or create


use the word program as a direct object?

Write a program for this process.


How do you use a program as a direct object?

Jon wrote a program for his computer.program = direct object (answers the question what did JOn write)computer = indirect object


Can you write a program without main in c?

Certainly, you can write a program without main, but you cannot build an executable from it, if that is okay with you.


Can you create a website without downloading things?

Absolutely. All you actually need is a text editing program to write your code and a server to host it.


Write a program in C to create a Circular Linked list?

#include<iostream.h>


When the object is created?

The computer desktop encyclopedia saysIn object technology, to create an object of a specific class(1) A single copy of a running program. Multiple instances of a program mean that the program has been loaded into memory several times. (2) In object technology, a member of a class; for example, "Lassie" is an instance of the class "dog." When an instance is created, the initial values of its instance variables are assigned.


How To write a java program to create three tier applications using servlets?

barsanabegam


Is c plus plus is pure object oriented?

No. C is not object-oriented, it is a procedural language.C++, while object-oriented, is not purelyobject-oriented. One of the requirements for a pure object-oriented language is that everything is an object. C++ still has primitive data types (int, long, double, etc.), and so is not purely object-oriented.


How do you write a program to read set of numbers using by an array and display the ascending order of the given input numbers?

To write a C++ program to display the student details using class and array of object.


Can you write a program without specifying the prototype of any function?

You can write a program without specifying its prototype when the function returns an integer.If the prototype is not mentioned the compiler thinks that the return type of the function used is integer.When making program which return integer you can ignore writing the protoype.


Where did you can find flute chords?

Sibelius is a program that allows you to transpose music and write your own. I'm sure if you create the roots of chords, you can find some part of the program that will allow you to create a wide range of chords.