in Education by
hey mates…… annyeong what is the difference between parameterized Constructor and Default constructor ( points must be varied) *_* Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Default constructor: ================ A constructor which takes no arguments is known as default constructor. __________ ●Compiler inserts a default no-arg constructor after compilation, if there is no explicit constructor defined in class and its datamember is initialise with 0. ●No need to pass any parameters while constructing new objects using default constructor. ●Default constructor is used for initializing objects with same data. Parametrized constructor: ==================== ●A constructor which takes one or more arguments is known as parameterized constructor. ●When parametrized constructor is defined in class, then programmer needs to define default no-arg constructor explicitly if required. ●At least one or more parameters needs to be passed while constructing new objects using argument constructors. ●Whereas parametrized constructor is used to create distinct objects with different data. ================☆☆☆☆☆☆☆☆☆☆☆====================

Related questions

0 votes
    Hello mates….what is the use of keyword “import”??need ur help… Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    Heyy mates..Am an icse student can anyone tell me any importance for java please its urgent I have my exam ... please for icse java. Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    hey,..please answer this What are the steps in protecting a document from accessing?… Select the correct answer from above options...
asked Dec 27, 2021 in Education by JackTerrance
0 votes
    hey,..please answer this What are the steps in protecting a document from accessing?… Select the correct answer from above options...
asked Dec 26, 2021 in Education by JackTerrance
0 votes
    Hey guys . anyone in class 11 CBSE My Comp. Sci. paper is on monday if anyone has Question paper plzzz send ... .plzzzz..zz .zzzz . Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    hey guys… plz answer this…What are the steps to print a document on a different paper size in Print dialog box. Select the correct answer from above options...
asked Dec 20, 2021 in Education by JackTerrance
0 votes
    Hey guys sorry for posting that type of questions I was just got bored Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    Hey gys I want to purchase a gaming laptop »™ I need ur help gys » name some laptop under 30000 with good processor and ram and rom Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    Hey guys! Can you tell me which full forms should I prepare for my ICSE computer board examinations?? Select the correct answer from above options...
asked Dec 14, 2021 in Education by JackTerrance
0 votes
    Which Public Policy aims to electrify rural India? Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    Write some important administrative acts given by the British. Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    What is meant by political neutrality? Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    Complete the following sentences by using the appropriate reasons. 1. Reporting is important in public ... administration. Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    Find the odd word in the given set. 1. Mayor, Sarpanch, Tehsildar, Gram Sevak. 2. Staffing, Directing, Budgeting, CSR. Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    State whether the following statement are true or false with reasons. Civil Servants must follow the principle of political neutrality. Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
...