python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Python class inheritance with different parameters
Please see the code below. Part of the explanation is:
B's constructor calls its direct superclass's constructor via line super().__init__(y) (super() returns a reference to the direct superclass)....
Raf T.
Votes: 0
Answers: 2
Can an association class have a subclass?
So I have an association class C that is an association between classes A and B. Class D is a subclass of class C as it contains data from class C.
Is it possible? and can it be represented as a diagr...
beginnernoob
Votes: 0
Answers: 2
Double linked list in c++ with inheritance
I try to solve Jopsephus problem and i need a circular double linked list, but i do not know how to do the following thing:
I got these classes:
class node
{
private:
int info;
nod *next;
}
...
Renato Pomparau
Votes: 0
Answers: 0
Calculations in class Student
I have created two classes: Person and Student in different modules. Here is my class Person:
import datetime
class Person:
def __init__(self, name, surname, patronymic, birthdate):
sel...
Vorrven
Votes: 0
Answers: 1