answersLogoWhite

0


Best Answer

Initialization of objects means to provide an initial value for the object. This is usually done by the constructor, or it can be done with an assignment statement.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What do you mean by initialisation of objects in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How is dynamic initialisation achieved in c plus plus?

The C++ standard has this to say about dynamic initialisation:"Objects with static storage duration shall be zero-initialised before any other initialisation takes place. Zero-initialisation and initialisation with a constant expression are collectively called static initialisation; all other initialisation is dynamic initialisation."


What do you mean by read only objects in c plus plus?

Objects that are not supposed to be written. Surprised?


What are the objects used in dev c plus plus?

Objects in Dev C++ are the same as objects in generic C++, insofar as an object is an instance of a class.


What is the difference between active and passive objects in c plus plus?

Passive objects encapsulate state and operations, whereas active objects also encapsulate a process. Standard C++ does not support active objects.


Instantiation of objects in c plus plus?

Objects are instantiated when statically declared or dynamically created with the new keyword.


Is set rate 5.75 an example of an assignment statement in programming?

When you assign a value to a variable that already exists, then it is always considered an assignment, otherwise it is considered an initialisation. The main difference is that an initialisation must instantiate a resource to hold the value, whereas the resource already exists with an assignment. In some cases (especially with badly-designed objects), initialisation may in fact be a two-stage process where, behind the scenes, the resource is first instantiated in an uninitialised or default state before being assigned a value through an assignment operator. C, for instance, always uses a two-stage initialisation whereas C++ can use a one-stage initialisation which is more efficient.


Object in c and c plus plus?

C is not an object-oriented programming language and therefore has no objects as such. However, the term is often used in a more general sense to mean any instance of an user-defined or primitive variable/constant. In C++, the term is used specifically to mean any instance of a class.


What are the difference between array declaration in java and c plus plus?

There is no difference, other than that declarations in C++ can also initialise the variable in a single instruction. C example: int x; // declaration x=5; // initialisation C++ example: int y=5; // declaration and initialisation combined.


In c plus plus what are the three ways that classes can relate to each other?

Class wrappers (embedded objects), inheritance (derived objects) and friend classes.


What is the mean c plus plus in machine code?

It is used to distinguish between the C or C++


What are entities in c plus plus?

Entities are the objects instantiated by your program, both at compile time and at runtime. Some objects are primitive data types, others are more complex such as objects instantiated from a class.


How do you write classes and objects for hospital management software using objective c or c plus plus?

You declare a class as follows: class MyClass { //some stuff here... } You create an object as follows: MyClass object; This is how you create classes and objects in C++.