answersLogoWhite

0

In C, no. In Java, yes.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Should gym class be optional or mandatory?

Encouraged maybe, not mandatory though imo.


How is mandatory and discretionary spending similar?

Mandatory spending - Spending that the Government must spend. Discretionary spending - Spending category through which governments can spend through an appropriations act.


What came after the end of the mandatory ROTC in the Philippines?

The National Service Training Program (NSTP) came after mandatory ROTC in the Philippines ended.


Inner class oops?

Inner class oops is a program. This program is smaller class within a bigger class.


What is a constructor and its mandatory to use constructor in a class?

A constructor is a method that is invoked when an object is created. As to being mandatory, that really depends on the programming language; in the case of Java, each class must have a constructor, however, in many cases Java will automatically provide a default constructor, so you don't really need to program it.


Which decision is the mandatory starting point for every Defense acquisition program?

MDD


What does compulsery mean?

It Means it "obligatory" or "mandatory. Ex. It is complusory that you go to class


Can a person with a class y felony get probation and a suspended sentence?

Not in Arkansas. The sentence is mandatory.


Why you start java program by class?

without class non of the folder can run so the java program should start in class we can use the class without object in java


What are the difference between 0.2 and 0.2S class in metering CT?

The 0.2S class is more accurate in meter reading than the 0.2 class. The 0.2S class is now mandatory for all meter reading.


Is social security a discretionary program?

The social security system is mandatory, not discretionary. You do not have the option of declining to participate.


Is it mandatory to use the construtors in a class in c plus plus?

No. If you do not provide a default constructor, the compiler will provide a default constructor that simply allocates memory for the class, but it will not initialize the members of the class. If you do not provide a copy constructor, then the compiler will provide a copy constructor that allocates memory for the class, and then copies the member's data from class to class. This is bad if the class contains pointers, because only the pointer will be copied - the objects to which the pointers point will not be copied - and you could wind up deleting an object and then using it after deletion, with potentially devastating consequences. So, yes, it is mandatory, from a good practices point of view, and just plain mandatory when the class has pointers, to always provide a default constructor and a copy constructor, along with the appropriate destructor.

Trending Questions
Why do we use PPE in welding? What is the use of sight glass in the boiler? How are maglev trains so loud if they have no engine? How do you delete the given string in java programming? What is the function of capacitor in an electric generator? What are Disadvantage of diode valve? What invention made catapults obsolete? How many gallons per minute will flow through a 2 inch pipe at 60 psi? What is the function of a RAC recovery program? Is explosive ordnance that has been fused and then dropped projected thrown or emplaced but remains unexploded either by malfunction or by design? When my 2000 ford focus idles the motor shakes and feels like it will stall also when you accelerate the motor shakes more violently and also start to stall but then kicks in and revs up what is it? What are the Real time examples for non linear data structures? What is the radius of 7.5 m a 2m concrete decck will be constructed around the pond the concrete least 15cm calculate the minimum volume of concrete required to construct the deck to one decimal p? Are riveted joints better than welded joints? What is it called the minimum distance your hands should ever come to the cutting tool? What are the applications of drilling machine? If a dc voltage of 12v is added to the secondary of step down transformer and rating of transformer is 220 input and 12v output what will be the result from primary of transformer? How do you prevent biological weathering of buildings? What is the language primarily used for Internet based applications? How do you increase the efficiency of pushing a concrete block up a wooden ramp?