Corsi
Corsi
Compilatore di codice
Compilatore di codice
Discuti
Prezzi
Squadre
Accedi
Registrati
Menu
Discussioni Q&A
Cerca
Cerca
Fai una domanda
Fai una domanda
We can't creat object for abstract class but inside abstract class we can create constructor what is the use of this constructor
abstract-classes
constructors
java
2 Voti
10 Risposte
29th May 2017, 6:09 PM
Rama krishna
Can constructor in java be overloaded??
@aniket
@mahesh
0 Voti
2 Risposte
18th May 2017, 2:52 PM
Ruchi sinha
should constructor be defined in public?
c++
constructors
0 Voti
2 Risposte
2nd Aug 2016, 11:32 AM
지경준
Why to have private copy constructor in singleton
c++
constructors
copy
singleton
0 Voti
3 Risposte
6th Jul 2022, 3:58 PM
Ketan Lalcheta
What is the difference between constructor and function?
c++
is
it
1 Voto
4 Risposte
22nd Aug 2018, 1:22 PM
Albert Whittaker :Shaken To Code
What is use of abstact class constructor ?
java
0 Voti
3 Risposte
18th Dec 2019, 11:13 AM
Ajoh Pv
I need explanation why this code print output 1?
c++
constructor
10 Voti
11 Risposte
14th Dec 2018, 1:42 AM
ZΛRTHΛИ
Write a code in java for (function and constructor overloading) that should elaborate the concept.How they are created and used.
constructors
java
overloading
1 Voto
5 Risposte
15th Apr 2021, 9:39 AM
Haider Ali Waris
Which keywords are used to achieve the constructor chaining in Java?
constructor
java
javaconstructorchaining
6 Voti
8 Risposte
30th Dec 2018, 1:55 AM
hunaysubhash chennu
Is a constructor part of a class or part of an object?
constructors
2 Voti
13 Risposte
3rd Jan 2019, 11:18 PM
Dominik Wolf
Can anybody explain, why the class B constructor calls the class A constructor in this code below? Thanks.
constructors
inheritance
java
methods
1 Voto
3 Risposte
17th Jul 2017, 5:58 PM
Zoller András
uncaught typeError: Person is not a constructor
javascript
0 Voti
1 Risposta
26th Jun 2020, 5:49 PM
Khabibulla Abdirakhmonov
How to understand copy constructor better?
constructors
java
0 Voti
1 Risposta
28th Sep 2019, 9:46 PM
arl
Can we make a constructor final?
<java>
1 Voto
1 Risposta
18th Jul 2017, 7:48 PM
Vikram Sah
Can we make a constructor private?
constructors
1 Voto
1 Risposta
25th Jul 2017, 8:23 AM
Vikram Sah
variable initialization inside class vs inside constructor
constructors
initialization
java
variables
0 Voti
1 Risposta
7th Mar 2022, 10:59 AM
Stefanoo
does the constructor need a access modifier
constructors
java
0 Voti
3 Risposte
5th Feb 2017, 3:50 PM
clins
what is the difference between constructor and destructor
c++
comments
1 Voto
4 Risposte
23rd Sep 2016, 5:32 AM
SAHIB SHAIKH
What is the use of private constructor in c++?
c++
0 Voti
8 Risposte
30th Aug 2017, 6:31 AM
Ashish Negi
how to pass pointer to constructor in c++
c++
inheritance
0 Voti
1 Risposta
7th Feb 2022, 6:03 PM
Shen Bapiro
Is there no concept of copy constructor in java?
constructors
instance
java
objects
4 Voti
1 Risposta
12th Dec 2021, 8:55 AM
Ruchika Sehgal
How can i make a simple constructor in Python?
constructors
python
python3
1 Voto
7 Risposte
21st Dec 2016, 9:16 PM
IgorSM
Can anyone give me a simple constructor example please?
class
constructors
java
0 Voti
8 Risposte
18th Jul 2017, 4:41 PM
D_Stark
How can i call just parameterize constructor of base class?
c++
constructors
oop
0 Voti
7 Risposte
3rd Dec 2020, 1:41 PM
Zubair Ul Amin
Base Class and Derived Class Constructor Arguments
c++
constructors
cpp
oop
parameters
0 Voti
1 Risposta
11th Mar 2021, 5:56 AM
Alexander Kramnik
The mystery of primary constructor in Kotlin. Please explain that code.
kotlin
primaryconstructor
7 Voti
3 Risposte
22nd Jun 2018, 7:12 AM
Oma Falk
what is the syntax for creating a constructor in java?
java
1 Voto
8 Risposte
26th Aug 2020, 2:47 PM
Nithish
Explain Copy constructor in easy way with example?
c
c++
constructors
destructors
polymorphism
1 Voto
3 Risposte
19th Jun 2020, 6:03 PM
SAMBHAV KUMAR THAKUR
What is the difference between constructor and method
java
1 Voto
2 Risposte
4th Mar 2017, 9:06 PM
kabelo
How to avoid Copy constructor doing object slicing
c++
object_slicing
slicing
0 Voti
2 Risposte
3rd Apr 2025, 7:14 AM
Ketan Lalcheta
Can we have getter and setter for Object Constructor in js?
getter
javascript
objects
2 Voti
8 Risposte
21st Mar 2022, 7:37 AM
I Am a Baked Potato
What is difference between copy constructor and assignment operator?
c#,
c++,
java,
oops
1 Voto
2 Risposte
23rd May 2018, 6:23 AM
R V
How function constructor works in the below scenario ?
javascript
1 Voto
3 Risposte
6th Jan 2023, 6:44 AM
Levi
Why we use constructor in oops ?
constructors
1 Voto
2 Risposte
4th Jan 2017, 3:51 AM
Waseem Siddiqi
Why explicit constructor does not fail for variant
c++
explicit
monostate
variant
0 Voti
1 Risposta
9th Jun 2024, 6:01 PM
Ketan Lalcheta
Where is QApplication constructor and QApplication.exe is defined
c++
make
qt
0 Voti
2 Risposte
3rd May 2024, 9:09 AM
Ketan Lalcheta
What is the use of constructor Chaining in Java programming?
javaconstructorchaining
4 Voti
4 Risposte
29th Dec 2018, 12:43 AM
hunaysubhash chennu
Why do we need constructor to initialize the variables?
c++
constructor
functions
initializatio
variables
1 Voto
4 Risposte
7th Jun 2020, 8:02 AM
Abhishek Dimri
Using a php constructor with a form
_constructor
forms
it
php
to
use
when
with
0 Voti
1 Risposta
24th Nov 2019, 5:48 PM
Making A Change
How to stop constructor call from max with three objects
c++
constructors
copy
max
0 Voti
5 Risposte
13th Jan 2025, 8:10 AM
Ketan Lalcheta
Why constructor name is same as class name ?
c#
c++
java
python
2 Voti
5 Risposte
22nd Jul 2017, 10:42 AM
Master Gaurav
What if RAII constructor fails due to exception
c++
exception
raii
0 Voti
2 Risposte
7th Dec 2023, 4:08 AM
Ketan Lalcheta
You are creating a bowling game! The given code declares a Bowling class with its constructor and addPlayer() method.
.
0 Voti
3 Risposte
26th Apr 2021, 3:39 PM
Rachita Bhasin
Why default constructor is not running in this case and parameterised constructor is running,when instruction super (10) is
aman
kumar
0 Voti
3 Risposte
3rd Aug 2017, 3:34 PM
Anum Anand
How to declare a constructor for the following code?
c++
2 Voti
5 Risposte
12th Mar 2017, 11:14 AM
keerthiga
Why variables initializes before the start of constructor body??
(int
a
a(int)
class
int
name
2 Voti
5 Risposte
18th Oct 2017, 3:47 PM
utkarsh pandey
is constructor have a same name as class name?
constructors
java
0 Voti
6 Risposte
9th Sep 2016, 2:17 PM
Pooja Ghetia
Why "super" keyword must be the first statement in constructor
constructors
first
java
statement
super
2 Voti
3 Risposte
13th Apr 2018, 12:57 PM
Nashat
Confusing about constructor in Java and C# help!
c#
developer
java
0 Voti
3 Risposte
11th Mar 2019, 8:52 AM
Narushipudenn
Is there any disadvantages of constructor and destructor ?
c++
class
constructor
destructor
0 Voti
4 Risposte
4th Feb 2019, 4:34 PM
Sahil Bhakat
Fai una domanda
Fai una domanda
Fai una domanda
Fai una domanda
< Precedente
1
...
5
6
7
...
13
Successivo >
Popolare oggi
I think the heart system is ridiculous, 5 hearts that refill after like 5 hours? That is really just crazy to me.
3 Votes
Guys I don't know anything about cooding who can help me pls
1 Votes
Why can’t I use double “ in python?
1 Votes
What do you think of this code and what are your suggestions for developing and modifying it?, How can I develop myself more?
1 Votes
Coding for Cybersecurity
1 Votes
Need help
1 Votes
Pointers in c#
1 Votes
2 cases not correct what's the problem
2 Votes
You’re free to give me your advice! 🚨
1 Votes
Salut tout le monde
1 Votes