menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Say you have a class that you want to inherit from a superclass. You want the __init__ function of the child class to be slightly different from the parent's. What should you do?
asked
Jul 26, 2021
51.5k
views
3
votes
Say you have a class that you want to inherit from a superclass. You want the __init__ function of the child class to be slightly different from the parent's. What should you do?
Computers and Technology
college
Andy Lester
asked
by
Andy Lester
8.6k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
1
vote
Answer:
define __init__() in child class.
Step-by-step explanation:
Mohanad Kaleia
answered
Aug 1, 2021
by
Mohanad Kaleia
6.8k
points
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Dec 14, 2024
201k
views
Given the following code snippet, identify the subclass and superclass: class ChoiceQuestion(Question) : def __init__(self) : a) the subclass is Question, the superclass is ChoiceQuestion b) the subclass
Bcarothers
asked
Dec 14, 2024
by
Bcarothers
7.8k
points
Computers and Technology
high-school
1
answer
4
votes
201k
views
asked
Jan 20, 2024
100.0k
views
Subclasses of a superclass with Comparable and compareTo will automatically _______ Comparable and inherit the compareTo method. a. Implement b. Extend c. Override d. Inherit
Chenupt
asked
Jan 20, 2024
by
Chenupt
8.7k
points
Computers and Technology
high-school
1
answer
1
vote
100.0k
views
asked
Sep 21, 2024
137k
views
For data transforms, What does the superclass feature allow? a) To call parent class data transforms b) To inherit properties from subclasses c) To override data transform rules d) To create parallel data
Douglas Bagnall
asked
Sep 21, 2024
by
Douglas Bagnall
8.3k
points
Computers and Technology
high-school
1
answer
4
votes
137k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org