answersLogoWhite

0

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

12y ago

What else can I help you with?

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.


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.


How do you use a program as a direct object?

To use a program as a direct object, you simply perform an action on the program directly. For example, "I use the program to edit photos." The program is the direct object in this sentence because it is the recipient of the action of being used.


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 hello world without operating system?

Yes, you can write a "hello world" program without an operating system using bare metal programming. This involves directly interfacing with the hardware of a computer system without an intermediary operating system. The program can be written to access and output text to a display device without the need for an OS.


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.