Kursy
Kursy
Kompilator kodu
Kompilator kodu
Dyskusja
Zespoły
Zaloguj się
Zarejestruj się
Menu
Dyskusje Q&A
Szukaj
Szukaj
Zadaj pytanie
Zadaj pytanie
how to use the constructor to take input form user.....?? nt using default constructor..
c++
0 głosów
5 odpowiedzi
8th Sep 2016, 11:27 AM
vikil lakkavatri
Can a program runs or executes even if a constructor is not created by the programmer?
a
behavior
class
describes
if
its
objects,
of
the
then
2 głosów
2 odpowiedzi
24th Sep 2020, 1:36 PM
Mae Ann Velasco
Math object doesn't need constructor then Math properties are static properties?
javascript
math
0 głosów
1 Odpowiedź
13th Jul 2016, 4:51 PM
Sergio Zemskov
I am not getting the concept of copy constructor in c++
constructors
copy
0 głosów
1 Odpowiedź
24th Feb 2017, 6:05 PM
Krishna Subhash Sonawane
How to use object constructor and what kind of different ways?
javascript
objects
0 głosów
1 Odpowiedź
29th Dec 2016, 6:57 AM
Vipul Aggarwal
What is the error in the following declaration of a constructor for the class Rectangle?
c++
0 głosów
3 odpowiedzi
24th Sep 2020, 4:10 PM
Tiara Feryndita Astuti
Why outputs 0*8*0 and 3*0*37(first and second outputs)? When i use the constructor works correctly(thrid output).
classes
constructors
oop
1 Głos
5 odpowiedzi
15th Jan 2019, 3:47 PM
Ch1p
Hello good afternoon. How to declare Boolean data type member as a null in default constructor ?
java
3 głosów
8 odpowiedzi
11th Nov 2017, 9:51 AM
raix832
Why this codE has 21 output??Is unset means object destroyed???
constructor
destructor
0 głosów
2 odpowiedzi
3rd Jun 2019, 6:18 PM
Iqra
I have read from many books, still cant correctly seem to understand the constructor concept and its use
constructors
1 Głos
8 odpowiedzi
4th Apr 2019, 12:56 PM
Gayatri Palkar
What is passed to the constructor? (Solved)
class
constructor
java
new_array
9 głosów
10 odpowiedzi
5th Jun 2018, 3:06 PM
D_Stark
hi how to pass string value from mainwindow to another window using constructor
2017
microsoftblend
visualstudio2017
1 Głos
1 Odpowiedź
22nd Nov 2018, 8:17 AM
Abinaya sekar
What does static method do for a class?
class
constructor
static
2 głosów
4 odpowiedzi
5th Nov 2018, 12:57 PM
Alquen
In what situation do you need to declare a static constructor in a non-static class
c#
2 głosów
2 odpowiedzi
28th Aug 2021, 5:14 AM
Tim
How to call constructor of a different class which is in same package .
call
class
constructors
how
in
of
other
package
same
to
0 głosów
4 odpowiedzi
22nd Jul 2017, 7:47 PM
Arun
Can someone help me understand more about defining methods inside constructor functions
methods
objects
0 głosów
2 odpowiedzi
1st Jan 2018, 8:42 PM
Too Vincent
Why do we need private constructors?
constructor
oop
private
6 głosów
5 odpowiedzi
7th Feb 2018, 9:33 PM
Yusuf
What is Constructor and Destructor in C++.And why we use it....please explain me with best way.....
c++
constructors
destructors
2 głosów
3 odpowiedzi
13th Oct 2019, 6:01 AM
💘 Ŝαđᵃ𝐦 ʰ𝐔ⓢ𝔰ÃιŇ 🎧
COPY CONSTRUCTOR(sololearn misses it)
c++
constructor
copy-constructor
7 głosów
5 odpowiedzi
14th Nov 2016, 11:55 AM
Megatron
How can I call a constructor of a class from another class?
constructors
java
0 głosów
1 Odpowiedź
25th Jun 2020, 4:06 PM
Muhammad Bilal
The given program defines a Painting class and creates an object using the constructor. Fix the code so that the constructor tak
c++
help
sololearn
1 Głos
6 odpowiedzi
8th Mar 2021, 7:56 PM
Zhar
What happens when we use super() in a constructor to pass elements to a base class
java
0 głosów
3 odpowiedzi
13th Oct 2020, 4:20 AM
Grace Maria Binu
Can we access private constructor of first class in second to create Object of first class?
java
reflection
spring
1 Głos
3 odpowiedzi
9th Aug 2019, 9:40 PM
Nilesh Shinde
How can I inherit a constructor with ability to add some other attributes for each subclasses's constructor?
constructors
inheritance
oop
python
0 głosów
7 odpowiedzi
21st May 2018, 8:57 PM
hide on bush
Which is best approach for declaration of Constructor using Arrays instead of strcpy?
c
c++
oop
0 głosów
1 Odpowiedź
14th Sep 2020, 12:19 AM
muhammad awais ashraf
Is there a way to create a constructor with default settings but with costume modifiers?
code
help
java
self-learning
sololearn
1 Głos
4 odpowiedzi
31st Jul 2017, 5:10 AM
Sam Miles
Is it a must constructor name be the same as destructor name?
c#
constructors
destructors
1 Głos
1 Odpowiedź
27th Sep 2016, 5:12 PM
kayode emmanuel
Can we have more than one constructor for the same class in C#?
#
c
c#
class
constructor
object
programming
0 głosów
1 Odpowiedź
9th Oct 2020, 5:29 AM
Rohan Agarwal
I don’t understand the point of an object with destructors and constructors
constructor
destructor
object
1 Głos
5 odpowiedzi
12th May 2018, 5:53 PM
Daniel
Difference between an instance variable and parameter with respect to a constructor
constructor
java
0 głosów
1 Odpowiedź
17th Nov 2018, 12:01 AM
onwuazombe tobechukwu
Pls explain what is constructor and destructor in php?... I'm confused :(
constructors
destructors
php
1 Głos
1 Odpowiedź
26th Aug 2017, 2:06 PM
dinesh yoga
Why can't I call or possibly assign the Constructor in this code?
c#
calling
classes
0 głosów
1 Odpowiedź
18th Nov 2017, 11:32 PM
kenneth Stanley
Is it that constructor can only be declared in public access specifier?
c++
constructors
0 głosów
1 Odpowiedź
28th Jul 2016, 4:23 PM
Abhilash Anand
Is constructor mean common method to all object create from class ??
constructors
java
1 Głos
1 Odpowiedź
8th Jun 2017, 4:12 AM
Bawantha Rajapaksha
What are constructors? how are they created? What is their use?
c++
constructor
help
sololearn
6 głosów
7 odpowiedzi
19th Jun 2018, 3:11 PM
Àbhîshëk[Inactive]
Do default constructor called automatically while creating object even If I don't provide any statement in it?
constructors
objects
oop
1 Głos
5 odpowiedzi
2nd Dec 2018, 5:01 PM
jamilxt
Can we make more than 1 class on the solo learn editor like that in case of constructor
java
2 głosów
4 odpowiedzi
25th Jun 2018, 5:57 AM
shivangi Tiwari
Why a constructor is always declare as the public? But not as private or protected.
c++
1 Głos
3 odpowiedzi
26th Feb 2017, 5:13 PM
Abhishek Satpathy
Can we create an object in constructor in python.. If yes why we need it?
django
java
javascript
machine
python
python3
website
0 głosów
2 odpowiedzi
6th Aug 2021, 3:18 PM
Sohaib Ul Hassan
Write a program to find area of Cuboid and perimeter of rectangle using constructor overloading.
java
1 Głos
2 odpowiedzi
4th Apr 2017, 6:50 AM
amit
Create copy constructor in class date assume that dd- mm- yy as member
plss
soon
0 głosów
2 odpowiedzi
14th Mar 2017, 2:05 AM
Nandhini
Javascript Constructors
constructor
javascript
js
0 głosów
6 odpowiedzi
5th Aug 2017, 4:33 PM
Andrés04_ve
why the constructor of super class is executed when we create object of sub class?
constructors
inheritance
java
0 głosów
4 odpowiedzi
21st Sep 2016, 9:08 AM
Pradeep Saini
Inheritence Problem
c++
constructor
inheritence
0 głosów
5 odpowiedzi
15th Apr 2020, 12:02 PM
Saad Saleem
Can anyone tell me how to create an object of a private constructor in c++
c++
0 głosów
2 odpowiedzi
16th Jul 2022, 11:20 PM
Abdul Rahim
Write a c++ Program to find the area of square.... Use friend function and constructor and function to find the area also print
area
classes
rectangle
square
2 głosów
11 odpowiedzi
26th May 2019, 1:37 PM
Khattab Ali Ghazi
How do you start typing a constructor code using NetBeans do you start from main
constructors
java
1 Głos
3 odpowiedzi
3rd Mar 2017, 9:48 AM
Dennis Mwangi
Wap in c++ to initialize two data members of type int using a constructor
@c++
@sololearn
0 głosów
1 Odpowiedź
14th Nov 2022, 1:41 AM
Niru Subba
Why the constructor does not change class property? Or is there another reason?
java
0 głosów
1 Odpowiedź
27th Apr 2020, 12:26 AM
Aniket Singh Rana
Can someone please explain this to me? "the constructor of the superclass is called when the subclass is instantiated.".
constructors
inheritance
java
1 Głos
8 odpowiedzi
13th Feb 2017, 2:35 PM
Ziad Hassan Ahmed
Zadaj pytanie
Zadaj pytanie
Zadaj pytanie
Zadaj pytanie
< Do tyłu
1
...
9
10
11
...
13
Dalej >
Popularne dzisiaj
Someone can help me
1 Votes
What's wrong with this?
2 Votes
HTML community, HELP!!
1 Votes
I am a super beginner
0 Votes
X velocity
0 Votes
Web Dev
0 Votes
Img & web server or personal info
0 Votes
I want to make a triangle area calculator ,anybody can teach me
1 Votes
How this program executes?
0 Votes
Pls give me an idea
1 Votes