Developer community
0 votes
1.9k views
asked by Geek (15.3k points) 17 42 62 | 1.9k views

1 Answer

0 votes
Default constructor Parameter constructor Default constructor is useful to initialize all objects with same data. Parameterized constructor is useful to initialize each object with different data. Default constructor does not have any parameters. Parameterized constructor will have 1 or more parameters When data is not passed at the time of creating an object, default constructor is called. When data is passed at the time of creating an object parameterized constructor is called.
answered by Guru (39.1k points) 10 22 35

Related questions

0 votes
1 answer
asked by smith Geek (15.3k points) 17 42 62 | 112 views
0 votes
2 answers
0 votes
1 answer
asked by smith Geek (15.3k points) 17 42 62 | 34 views
0 votes
1 answer
asked by smith Geek (15.3k points) 17 42 62 | 39 views
0 votes
1 answer
asked by sara Guru (24.6k points) 29 52 82 | 26 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

3,751 questions
4,046 answers
117 comments
10,709 users