Kursy
Kursy
Kompilator kodu
Kompilator kodu
Dyskusja
Zespoły
Zaloguj się
Zarejestruj się
Menu
Dyskusje Q&A
Szukaj
Szukaj
Zadaj pytanie
Zadaj pytanie
A base class pointer can point to a derived class object, but vice versa in not true
c++
3 głosów
5 odpowiedzi
15th Sep 2018, 7:29 AM
AKSHAT BHATT
How are we able to call a base class static method by using a derived class name?
base
c++
class
classes
derived
static
staticfunction
4 głosów
12 odpowiedzi
15th Mar 2018, 3:37 AM
Ashish Gaur
Derived Class(sub class) is not overriding method from its super class(base class) in C#
base
c#
derived
method
override
1 Głos
3 odpowiedzi
25th Aug 2020, 2:52 PM
Timothy Njiru
C++ How to avoid Object Slicing with derived classes being stored in base vector
c++
constructor
object
slicing
0 głosów
4 odpowiedzi
10th Apr 2020, 4:22 PM
Tyler
Can object of derived class access protected member functions of its base class?
inheritence
1 Głos
3 odpowiedzi
28th Feb 2017, 6:03 AM
Prabhat Rao
Is it true a derived class does not inherit base class constructor and destructor?
constructors
1 Głos
3 odpowiedzi
14th May 2018, 4:55 PM
Mixe
Can you help me with base class reference to derived classes? Thank you :)
base
c++
derived
exceptions
reference
1 Głos
1 Odpowiedź
17th Aug 2021, 11:39 AM
Rishi
So c# and c++ are both derived from c . So what exactly is different between the two
c++
12 głosów
5 odpowiedzi
13th Apr 2017, 5:20 AM
Karuma Tendai
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 głosów
2 odpowiedzi
6th Aug 2016, 3:10 PM
shola ola ibrahim
In the below program,How to call a base class from its derived class ?
cpp
1 Głos
2 odpowiedzi
28th Mar 2017, 7:21 AM
keerthiga
Can anyone explain static polymorphism where overridden methods are called directly by using derived objects?
compiletimepolymorphism
earlybindings
polymorphism
staticpolymorphism
0 głosów
3 odpowiedzi
14th Dec 2018, 8:38 AM
Shashank Tripathi
I want to use 2 derived classes' methods acting on objects of these classes
c#
c++
derived
implementation
javascript
methods
0 głosów
1 Odpowiedź
25th Nov 2019, 8:21 AM
Арсений Горбунов
In C++, how to call derived class constructors if base class also has parameterized constructor?
base-classes
classes
constructors
cpp
derived-classes
oop
0 głosów
2 odpowiedzi
7th Jul 2020, 8:14 PM
Kisembo Allan
Lots of technologies exist derived from JavaScript. Where to find for what each one is used?
javascript
2 głosów
3 odpowiedzi
19th Jul 2016, 3:40 PM
Albert Gullbee
Why 14 is not printing? ..How to call base class parameterized constructor in derived class copy constructor in C++?
coding
constructor
cpp
cstring
destructor
exception
oop
python
vectors
what()
1 Głos
6 odpowiedzi
11th Aug 2022, 12:58 PM
Muhammad Talha Atif
Why does pointers to the base class when we can just does the derived class?
c++
polymorphism
virtual
0 głosów
1 Odpowiedź
17th Mar 2020, 7:25 PM
Donovan Thompson
Create an abstract class called "Animal" and four derived classes Cow, Horse, Tiger, and Lamb.
abstract-classes
c++
member-funtion
-1 Głos
1 Odpowiedź
20th Nov 2020, 12:14 PM
Something New
Can private members of the base class become protected members of the derived class in protected inheritance?
c++
inheritance
3 głosów
2 odpowiedzi
12th Feb 2017, 9:31 AM
Loise Muthoni
Measurement of attribute ... what is the meaning of all that 100 2000 cy cx how are the numbers derived
measurement
0 głosów
10 odpowiedzi
18th Mar 2018, 8:19 PM
Jeffrey Ohene Kankam Mensah
Would I be wrong in stating that all of C#, JavaScript, Java, C++ are derived from C?
c
c#
c++
java
javascript
3 głosów
2 odpowiedzi
4th May 2017, 7:46 PM
Hassen Basdouri
Why do we use the base class type when defining pointers to derived class objects?
c++
oop
pointers
0 głosów
1 Odpowiedź
30th Mar 2022, 6:38 AM
Paek Se
I don't understand. What should I do to avoid the execution of constructor base class by creating derived class?
c#
inheritance
2 głosów
4 odpowiedzi
22nd Apr 2016, 9:02 AM
ShaminIlya
Help! Topic: inheritance, derived classes in C++. CAN someone explain the error" calling a private constructor, has_abs is priv
cplusplus
0 głosów
4 odpowiedzi
1st Jun 2020, 8:34 AM
Reynolds Onyango
Why compiliator gives error when i try assign a value fuelCons in derived class? where is my mistake?
class
protected
1 Głos
3 odpowiedzi
4th Aug 2017, 1:18 AM
Nursultan Esirkegenov
How Is it possible to access the private member of a base class in the derived class in c++
c++
0 głosów
2 odpowiedzi
3rd Jun 2021, 2:05 PM
steadson allen
What is the result of this code? fib={1:1,2:1,3:2,4:3} print (fib.get (4,0) +fib.get (7,5)) the answer derived was 8 !?? How??
no
tags
1 Głos
4 odpowiedzi
7th Jun 2017, 11:44 PM
thomo
Help! Topic: inheritance, derived classes in C++. CAN someone explain the error" calling a private constructor, has_abs is priv
c++
0 głosów
2 odpowiedzi
31st May 2020, 9:31 AM
Reynolds Onyango
We can assign Derived Class Object to Base Class Object. But why can't we do the reverse?
c++
inheritance
0 głosów
2 odpowiedzi
26th Jan 2017, 3:20 PM
james nyle
Should I learn C++ first or C? I know C++ was derived from C. Does it not matter which is learnt first? Please advise
c
c++
or
6 głosów
5 odpowiedzi
5th Feb 2017, 7:09 AM
Michelle Ryan
what will be output is function with same parameters and same return type is used in derived class
cpp
inheritance
2 głosów
1 Odpowiedź
4th Aug 2017, 4:01 PM
Siddharth K
Is protected member accessible within the class where it's been declared and within its derived class's INSTANCES?
c#
challenge
mistake
0 głosów
1 Odpowiedź
3rd Feb 2017, 11:07 AM
Vladimir Poddukin
Why do I can't initialize protected variable through constructors aren't they inherited protected members of derived class?
c++
polymorphism
1 Głos
1 Odpowiedź
23rd Dec 2016, 6:07 PM
Abhishek Sharma
How to access a virtual method of the based class from the derived class where the method have been redefined ?
c#
polymorphism
0 głosów
5 odpowiedzi
31st Jul 2016, 2:29 PM
Ission
( Need Help ) How to change the value of private member of base class from derived class ? thank you 🐱
c#
classes
constructors
2 głosów
2 odpowiedzi
9th May 2019, 2:40 AM
Putu Ekky Crisayoga
If I inherit derived class from base class as private what will be the order of constructor and destructor?
c++
inheritance
1 Głos
2 odpowiedzi
30th Aug 2016, 4:53 PM
Sunitha Ganti
How to write constructor for class B if it is a derived class of A? How to instantiate?
c++
constructors
inheritance
0 głosów
2 odpowiedzi
23rd Nov 2016, 1:51 PM
Marcell Juhasz
Whta is " Pointers to derived classes " in c++ " ? Please give me a better understandable definition.
c++
loops
2 głosów
1 Odpowiedź
7th Feb 2017, 3:47 PM
Fazle Rasool Rizvi
Where is a good resource to learn more about classes(public private, derived etc) and how they work with each other? Thanks
c++
classes
java
1 Głos
3 odpowiedzi
14th Nov 2016, 8:43 PM
Flo
Does copy constructor / assignment operator of base class also gets called
assignment
base
c++
copy
derived
5 głosów
3 odpowiedzi
17th Jun 2020, 1:26 PM
Ketan Lalcheta
can someone help me in java project
arraylist
class
covid_19
derived
help
java
1 Głos
7 odpowiedzi
27th Apr 2020, 10:44 PM
Anas Omari
Does derived class inherits v pointer from base class and uses that only or it have its own v pointer also?
c++
1 Głos
1 Odpowiedź
17th Jan 2020, 1:26 PM
Amit chavare
Anyone can explain this?? Generally a constructor of base class doesn't inherit to derived class..... But here I'm confused...
c++
classes
constructors
0 głosów
1 Odpowiedź
9th Sep 2017, 2:06 PM
Harsha Sanju
How to keep initial class object name?
c++
classes
derived
inheritance
2 głosów
1 Odpowiedź
24th Jan 2017, 7:20 PM
Travon
Why this program gives error. It doesn't gives error if we remove the definition of fun() function in derived class B. Why it be
c++
classes
inheritance
oop
oops
0 głosów
2 odpowiedzi
13th Jun 2021, 6:00 AM
Rahul Kumar
Do I have to declare all of class members as 'protected' if I would like to use them in a derived class?
c++
inheritance
java
private
2 głosów
1 Odpowiedź
16th Nov 2016, 6:34 PM
Marcell Juhasz
Can anybody tell me, if the c'tor d'tor calling works the same way with polymorhism, as I instatiate a derived class?
c#
polymorphism
0 głosów
1 Odpowiedź
18th Apr 2016, 1:56 PM
Gábor Beke
if the base class has a overloaded constructor, can we specify which to be called when creating a derived class from the bass class?
c++
inheritance
3 głosów
1 Odpowiedź
30th Apr 2016, 3:19 PM
Moria
Assume there is a class Derv with one int variable that is derived from a base class Base with one int variable.
c++
class
declarations
0 głosów
1 Odpowiedź
11th Jan 2021, 12:43 AM
mohamed emad
why do we use VirtualFunction to allow derived class to use to base class function , yet we already have the inheritance acces s
c++
function
inheritence
virtual
virtualfunction
0 głosów
2 odpowiedzi
23rd Aug 2018, 3:28 PM
S. Kaouche
Why two time base / parent constructor is not called
base
c++
constructor
deligate
derived
1 Głos
1 Odpowiedź
22nd Jun 2020, 4:46 PM
Ketan Lalcheta
Zadaj pytanie
Zadaj pytanie
Zadaj pytanie
Zadaj pytanie
< Do tyłu
1
2
3
Dalej >
Popularne dzisiaj
is python better than JS
0 Votes
Most asked 3.0
0 Votes
Print("hello ,world!"[7:13][2])
0 Votes
Can anyone confirm this sololearn bug ?
0 Votes
How can i improve my code
1 Votes
Would it be possible to store all your Python files in the same directory, and achieve data persistence?
0 Votes
time complexity
1 Votes
Python
0 Votes
Any Other Solution?
1 Votes
Using JavaScript with an External File
0 Votes