Курсы
Курсы
Компилятор кода
Компилятор кода
Обсуждения
Teams
Войти
Регистрация
Menu
Обсуждения
Поиск
Поиск
Задать вопрос
Задать вопрос
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 голосов
12 ответов
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 голос
3 ответов
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 голосов
4 ответов
10th Apr 2020, 4:22 PM
Tyler
Can object of derived class access protected member functions of its base class?
inheritence
1 голос
3 ответов
28th Feb 2017, 6:03 AM
Prabhat Rao
Is it true a derived class does not inherit base class constructor and destructor?
constructors
1 голос
3 ответов
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 голос
1 ответ
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 голосов
5 ответов
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 голосов
2 ответов
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 голос
2 ответов
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 голосов
3 ответов
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 голосов
1 ответ
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 голосов
2 ответов
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 голосов
3 ответов
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 голос
6 ответов
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 голосов
1 ответ
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 голос
1 ответ
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 голосов
2 ответов
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 голосов
10 ответов
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 голосов
2 ответов
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 голосов
1 ответ
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 голосов
4 ответов
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 голосов
4 ответов
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 голос
3 ответов
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 голосов
2 ответов
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 голос
4 ответов
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 голосов
2 ответов
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 голосов
2 ответов
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 голосов
5 ответов
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 голосов
1 ответ
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 голосов
1 ответ
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 голос
1 ответ
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 голосов
5 ответов
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 голосов
2 ответов
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 голос
2 ответов
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 голосов
2 ответов
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 голосов
1 ответ
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 голос
3 ответов
14th Nov 2016, 8:43 PM
Flo
Does copy constructor / assignment operator of base class also gets called
assignment
base
c++
copy
derived
5 голосов
3 ответов
17th Jun 2020, 1:26 PM
Ketan Lalcheta
can someone help me in java project
arraylist
class
covid_19
derived
help
java
1 голос
7 ответов
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 голос
1 ответ
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 голосов
1 ответ
9th Sep 2017, 2:06 PM
Harsha Sanju
How to keep initial class object name?
c++
classes
derived
inheritance
2 голосов
1 ответ
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 голосов
2 ответов
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 голосов
1 ответ
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 голосов
1 ответ
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 голосов
1 ответ
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 голосов
1 ответ
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 голосов
2 ответов
23rd Aug 2018, 3:28 PM
S. Kaouche
Why two time base / parent constructor is not called
base
c++
constructor
deligate
derived
1 голос
1 ответ
22nd Jun 2020, 4:46 PM
Ketan Lalcheta
2 classes base class - A & derived - B .How to access private member(n) which is declared in A to B as A::n
c++
0 голосов
2 ответов
3rd Sep 2017, 9:51 AM
Pratiksha Chikhale
Задать вопрос
Задать вопрос
Задать вопрос
Задать вопрос
< Предыдущий
1
2
3
Следующий >
Актуальное сегодня
Help please?
3 Votes
How to get better with problem-solving and programming
1 Votes
Ejercicio Pytho
0 Votes
Odd even threads without condition variable
0 Votes
Online voting system
2 Votes
What is that z for
0 Votes
Bug on "Java for Beginners Module 3 Quiz"
1 Votes
Suggestions needed
4 Votes
Game development
0 Votes
Ruby programming?
3 Votes