answersLogoWhite

0


Best Answer

There is no specific keyword for a constructor in C++. Simply define and declare a method of the class with the same name as the class and it will be a constructor.

A constructor with no arguments is the default constructor, a constructor with one argument of class type is the copy constructor, and a constructor with one argument of some other type is the conversion constructor. You can provide other overloaded constructors if you want.

User Avatar

Wiki User

โˆ™ 2011-04-29 20:49:08
This answer is:
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
User Avatar
Study guides
๐Ÿ““
See all Study Guides
โœ๏ธ
Create a Study Guide

Add your answer:

Earn +20 pts
Q: Which key word is used as constructor in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How java use extern key word which is used in C plus plus?

No extern keyword in Java.


In MS Word Ctrl plus Home key is used to?

It is used to bring you to the start of the document.


What is static key word?

It is one of the constant key word and it is used only in run time


How would you word a warranty on a used car?

"As Is" is a key word to place in the warranty of a used car.


What is another word for key used in reports?

Central.


What is the key word moreover used for?

emphasis and purpose


What key is used to remove the character before the insertion point in word?

Use the backspace key.


Is minor key an adjective?

Not together. The word "minor" is used as an adjective. It modifies the noun, which is "key."


Which function key in Microsoft Word is used to display save as a dialogue box?

The F12 key.


What is the key word used to describe equal responsibilities?

Participation


A single word or an association of words used in a query?

They are called key word(s).


Shortcut key's used in Microsoft Word?

ctrl+b- bold


What is a key word?

The words we use to do searches of a document or a database, to find out if those words are present in it, are called "key" words. <><><> A "key" word is a word that stands out above the rest... for a school project or work project a "key" word would be the word that links to part of the rest of the project. "key" words are special tokens in the language. "key" words may not be used as identifier in java. we cannot declare a field whose name is a "key" word.


What does control plus 2 do?

In which software u wanna know? its used for key mapping normally


Is 'from' a key word for subtraction?

the key word is morethan


How many times is the word key used in the bible?

In the King James version the word - the - appears 63,924 times. It is the most common word used in the Bible


What is a nonparameterised constructor in java?

Every class, including abstract classes, MUST have a constructor. But just because a class must have one, doesn't mean the programmer has to type it. A constructor looks like this: class Car { Car() { } // The constructor for the Car class } You notice anything missing in the declaration above? There's no return type! Two key points to remember about constructors are that they have no return type and their names must exactly match the class name. The above car() is the non-parameterised or no-arg constructor for the class.


What key combination is used to close the Microsoft Word document?

Alt+F4


Is the word key's a noun?

Yes it is a noun. It is an object that can be used with a verb in the sentence.


What does the Ctrl plus you shortcut key accomplish in Ms-Word?

Ctrl + U will underline text that is selected. Ctrl and the plus sign will superscript text. You need to hold the shift key while doing that, otherwise it subscripts the text.


What is the key word in the water cycle?

the key word is WATER


What is the key word in action project?

the key word is action.


Special properties of constructor?

Two key points to remember about constructors are that they have no return type and their names must exactly match the class name


How do you make a cross symbol on your keyboard?

you have to find the key with the plus and equals symbol. Then push the shift key and the plus/equals key. The "cross" should show up. Plus (+) equals (=). The plus should be above the equals.


How do you write a program in C plus plus that displays a breakdown of words?

Parse the text, one word at a time. Convert the word to lowercase if necessary, than push the word onto a set, using the word as the key. When complete, the set will contain only the unique words.