What is the use of default constructor, C/C++ Programming

Assignment Help:

What is the use of default constructor?

- It's a constructor that doesn't accept any parameters.

- If there is no user-defined constructor for a class, compiler declares a default parameter less constructor known as default constructor. It's an inline public member of its class.

When compiler uses this constructor to create an object -constructor will have no constructor initializer and a null body.

 


Related Discussions:- What is the use of default constructor

Oop, define a class for student

define a class for student

Compiler Design - Limit the methods, Rahul is a newbie to the programming a...

Rahul is a newbie to the programming and while learning the programming language he came to know the following rules: ???• Each program must start with ''{'' and end with '

Explain integer literal, Integer literal Integer is numbers without fra...

Integer literal Integer is numbers without fractional parts. e.g. 20       // Decimal 024      // Octal     0x14     // Hexadecimal To indicate long, unsigned,

What happens if you write following code?, What happens if you write follow...

What happens if you write following code? string& foo()

Matrices, write a c program that multiplies 3 martices

write a c program that multiplies 3 martices

Decompression of files compressed with LZW, The files are meteorological ra...

The files are meteorological radar data whose decompression is badly needed for relative study. Please contact Kathy Lee (Email: ; Cell phone: 0086 15701799056) or Mr. Zhu (Email:

, print this pattern 1 01 101 010

print this pattern 1 01 101 0101

Area of curve, Write a program to find the area under the curve y = f(x) be...

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

Computer Science Engineering C++ Homework, Temperature Conversions. Problem...

Temperature Conversions. Problems 28 through30generate temperature-conversion tables. Use the following equations that give relationships between temperatures in degrees Fahrenheit

Area under curve, Write a program to find the area under the curve y = f(x)...

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.     #include float start

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd