New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
does the base class constructor automatically called whenever an object is created for subclass?
inheritance
python
0 Votes
2 Answers
23rd Aug 2016, 2:36 PM
Raghul Kumar
Constructor call that is used by the sub class to call a constructor of its superclass A. new B. extends C. implements D. super
java
0 Votes
2 Answers
23rd Aug 2016, 10:14 AM
Nardz
what is the purpose of defining explicit constructor in a class?
c++
constructors
0 Votes
7 Answers
18th Aug 2016, 7:14 PM
Amit Gupta
Does Constructor return any Value?
constructors
java
2 Votes
4 Answers
17th Aug 2016, 8:42 PM
Dipayan Pramanik
constructor returns anything?
constructors
java
0 Votes
4 Answers
14th Aug 2016, 4:48 PM
srilekha
create class and its constructor taking one argument and as singing in to the "name " attribute then create and object of the class.
classes
python
0 Votes
10 Answers
12th Aug 2016, 11:36 AM
Mersha Alemayehu
when constructor is parameterize, what does it mean
c++
constructors
0 Votes
2 Answers
10th Aug 2016, 5:06 PM
Walter Eke
Write a program using constructor that find the sum of five digit number. (5)
c++
-3 Votes
1 Answer
8th Aug 2016, 9:51 AM
sumit behra
constructor
constructors
java
0 Votes
2 Answers
8th Aug 2016, 7:17 AM
€¥~RTH~€¥
Why is the base class constructor called before the derived class and the derived class destructor called before based class destructor? Please I need brief explanation on this.
c++
inheritance
0 Votes
2 Answers
6th Aug 2016, 3:10 PM
shola ola ibrahim
should constructor be defined in public?
c++
constructors
0 Votes
2 Answers
2nd Aug 2016, 11:32 AM
지경준
Is it that constructor can only be declared in public access specifier?
c++
constructors
0 Votes
1 Answer
28th Jul 2016, 4:23 PM
Abhilash Anand
what is the difference between method and a constructor
java
0 Votes
4 Answers
24th Jul 2016, 8:52 AM
ajit
Can anyone plz elaborate the calling of constructor and destructor by giving some program as example?
c++
constructors
0 Votes
1 Answer
23rd Jul 2016, 7:21 PM
Kaivalya Dalvi
Can we use this() and super() both in the constructor ??
constructors
java
0 Votes
3 Answers
18th Jul 2016, 5:29 PM
AnsHuman Aaditya
Math object doesn't need constructor then Math properties are static properties?
javascript
math
0 Votes
1 Answer
13th Jul 2016, 4:51 PM
Sergio Zemskov
what is the difference between constructor and methods?
constructors
java
6 Votes
4 Answers
12th Jul 2016, 12:11 PM
Jason Lumanto
adding birthday class to person class gives error when I separate the constructor creation for person between person.h and person.cpp
c++
classes
-1 Vote
2 Answers
7th Jul 2016, 9:23 PM
George Udosen
Can i access to private class var's? Ex. public class me{ private Int a = 1; private Int b = 20; } then we have the constructor and gets and setters, but in other class can I get the values of a and b? calling class or never because its private? How?
access-modifiers
classes
java
objects
4 Votes
4 Answers
6th Jul 2016, 12:54 PM
João Lourenço
Why we need object constructor to construct any object?
javascript
objects
0 Votes
3 Answers
18th Jun 2016, 1:16 PM
sorath Peetamber
I'm not understanding how default constructors are used. How would I go about displaying the default constructor or is it not actually something that gets displayed?
c#
constructors
1 Vote
4 Answers
18th Jun 2016, 3:29 AM
Daniel Ikpeama
Can constructor be final?
constructors
final
java
3 Votes
8 Answers
2nd May 2016, 1:16 PM
Василь Євсеєнко
Why another constructor is not running during class B initialization?
inheritance
java
0 Votes
5 Answers
1st May 2016, 8:09 AM
Rajesh
I don't understand. What should I do to avoid the execution of constructor base class by creating derived class?
c#
inheritance
2 Votes
4 Answers
22nd Apr 2016, 9:02 AM
ShaminIlya
Is the constructor method executed upon initializing?
c#
constructors
2 Votes
2 Answers
2nd Apr 2016, 4:06 AM
Cadell Van Den Heuvel
Like why do we need to construct a constructor pls can anyone help
javascript
objects
0 Votes
1 Answer
17th Feb 2016, 10:31 AM
chandrika kadam
What's the meaning of this constructor takes no arguments?
classes
python
2 Votes
2 Answers
11th Feb 2016, 5:18 PM
derick
Can anyone explain why I need to create a constructor at all when I can just make an regular object and do the same things?
constructors
java
0 Votes
2 Answers
4th Feb 2016, 2:11 PM
Syed Ruman
Why should i type public before constructor? can i create a constructor without public?
constructors
java
0 Votes
2 Answers
14th Jan 2016, 12:04 PM
JulietLove
can we create constructor in abstract class?
abstract-classes
java
1 Vote
3 Answers
2nd Jan 2016, 4:50 PM
Amer Saoud
How can u define constructor to real world scenario?
constructors
java
1 Vote
1 Answer
3rd Dec 2015, 8:35 PM
Devi Gandham
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
12
13
Next >
Hot today
Isogram Detector
2 Votes
Popsicle program
1 Votes
Need suggestions what improvements can I do in it
3 Votes
[SOLVED] Why 'null >= 0' is TRUE?
3 Votes
pls how do I write comments in code
0 Votes
What is the generally preferred way of assigning values in Python?
1 Votes
R programming
2 Votes
I want you to help me guys
0 Votes
How to add shadow on text
0 Votes
Hello
0 Votes