Q&A Discussions
Search
Search
Ask a question
Ask a question
What is a superclass
java
8 Votes
4 Answers
5th Nov 2017, 8:38 AM
Shubh Mehrotra
Subclass, SuperClass and Games
games
inheritance
8 Votes
1 Answer
11th Aug 2019, 10:12 AM
Nguyễn Tín
Is the default constructor remains common for the superclass and the subclass?
constructors
inheritance
java
8 Votes
12 Answers
22nd Apr 2021, 1:15 PM
Atul [Inactive]
Declaring variables of a superclass
inheritance
java
polymorphism
8 Votes
2 Answers
11th Feb 2017, 1:28 AM
Hugo Jaramillo
create an object of superclass in subclass
java
8 Votes
6 Answers
11th Nov 2020, 2:44 PM
saeedeh
Create a super class called Car
java
method
superclass
8 Votes
2 Answers
12th Apr 2021, 2:02 AM
Onin Abellanosa
Difference between base class and superclass
c++
8 Votes
2 Answers
28th Sep 2017, 7:01 PM
Serjeel Ranjan
Why does this Python code not print 1 from its superclass __init__?
challenge
python
8 Votes
17 Answers
16th Jun 2021, 7:40 PM
Josh Greig
What is the Keyword for Adding Superclass in Java?
java
superclass
8 Votes
2 Answers
27th Apr 2017, 12:10 PM
Min Somai
xor for__init__ function between superclass and subclass
inheritance
python
subclass
superclass
8 Votes
1 Answer
2nd Dec 2017, 1:50 PM
Aref moloughi
Can a superclass inherit subclass methods and instance variables?
inheritance
java
methods
8 Votes
2 Answers
12th Aug 2017, 1:00 PM
PandaPanda🐼
In Java a reference variable of superclass is assigned to sub class . ls superclass knows the variables and methods of subclass
inheritance
8 Votes
2 Answers
11th Apr 2019, 2:06 PM
Pravallika
Creating object by using superclass reference in java
java
polymorphism
8 Votes
1 Answer
14th Jan 2018, 3:09 PM
Roman
(JAVA)What happens with variables of the superclass when we use pholymorphism?
java
pholymorphism
subclass
superclass
variables
8 Votes
4 Answers
25th Apr 2019, 8:50 PM
Rosana Rodríguez Milanés
What happens in this statement ? " Superclass obj=new Subclass(); "
.
8 Votes
5 Answers
8th Aug 2018, 11:34 AM
Waseem
how can i change the value of a attribute in the superclass while i am in the childclass?
java
8 Votes
39 Answers
8th Sep 2020, 4:48 PM
Mahdi (Twelve Imam)
i changed the value of variable of superclass but there is no change in subclass.why?
java
8 Votes
9 Answers
11th Nov 2020, 6:56 PM
saeedeh
Help
superclass
8 Votes
2 Answers
22nd May 2018, 6:51 PM
Mykhailo Symonenko
What is the meaning of adding characteristics and behaviour in a subclass of superclass
behaviour
characteristics
inheritance
java
8 Votes
4 Answers
13th Mar 2019, 1:15 PM
Rajb957
Is the reason behind the superclass is to reduce redundancy and memory?
inheritance
java
superclass
8 Votes
2 Answers
2nd Jun 2017, 6:11 PM
Jack Shearer
a superclass reference variable can refer to a subclass object , but what is it's practical use?
inheritance
java
polymorphism
8 Votes
4 Answers
7th Dec 2019, 5:17 PM
🇮🇳Omkar🕉
I call function superclass in subclass with keyword super. I have error. Thanks you.
call
function
in
subclass.
superclass
8 Votes
1 Answer
2nd Feb 2021, 4:56 AM
Malick Diagne
all fields and methods of the superclass are inherited by the subclass
inheritance
java
8 Votes
1 Answer
2nd Sep 2016, 6:26 PM
Gabriel Comaniciu
what the subclass and the superclass and what is different between them ??
access-modifiers
class
java
subclass
super
superclass
8 Votes
1 Answer
5th Jul 2017, 2:48 PM
mohamed ashraf
I want to span background name yellow in my superclass and subclass. Thanks you.
background
class.
in
name
yellow
8 Votes
1 Answer
3rd Feb 2021, 6:16 AM
Malick Diagne
Can you access a private variable from the superclass using the super keyword within the subclass?
inheritance
java
8 Votes
2 Answers
6th Dec 2016, 3:03 PM
Elizabeth Brown
How to print only from a superclass and not from its child classes's method?
inheritance
python
8 Votes
2 Answers
9th Jul 2016, 5:14 AM
jayrajarora2694
How can the subclass override a concrete method of the superclass and declare it as abstract?
abstract
class
java
subclass
superclass
8 Votes
2 Answers
7th Mar 2020, 11:13 AM
D ̲E ̲S ̲S ̲I ̲E ̲- ̲B ̲A ̲H ̲I ̲R ̲U ̲
Is there a way to check the full content of a superclass or subclass?
inheritance
python
8 Votes
1 Answer
21st Aug 2016, 6:35 PM
Luc Evertzen
Can someone please explain this to me? "the constructor of the superclass is called when the subclass is instantiated.".
constructors
inheritance
java
8 Votes
8 Answers
13th Feb 2017, 2:35 PM
Ziad Hassan Ahmed
In Java, when a subclass object is created, is a superclass object created or not?
java
8 Votes
1 Answer
18th Dec 2016, 5:47 AM
Somnath Ghosh
Why do we need to insert same parameters of superclass constructor() in the super() method within subclass constructor()
classes
javascript
8 Votes
3 Answers
14th Aug 2022, 12:26 PM
Ahamed Shifak
What if I dont want the constructor of the superclass to be executed when creating an object of the subclass?
inheritance
subclass
superclass
8 Votes
3 Answers
13th Mar 2018, 11:18 AM
Adam Aksu
Could someone please explain what is being overridden in the extended superclass "Animal"... when commented out, value remains.
extends,
method
overriding
superclass,
8 Votes
3 Answers
7th Jan 2018, 11:59 AM
Charles Street
Difference between super class and this Class..?
superclass
thisclass
8 Votes
1 Answer
2nd Aug 2018, 1:53 AM
Ashok K
[Java] super class and subclass question
reference-variables
subclass
superclass
8 Votes
4 Answers
20th Oct 2020, 3:32 AM
Aditya Kumar
How does the subclass Dog inherit the variable legs with the value of 4 from the superclass Animal
inheritance
8 Votes
1 Answer
10th May 2019, 2:54 AM
Shak 240
"To use an abstract class, you have to inherit it from another class"then in this sentences abstract class is superclass or not?
abstract-classes
8 Votes
5 Answers
20th Dec 2017, 3:37 AM
Jayshri Patil
How do I pass arguments to the superclass constructor while creating an object of the subclass in this case?
inheritance
8 Votes
1 Answer
15th May 2019, 1:56 AM
Debraj Singh
How does the subclass Dog inherit the variable legs with the value of 4 from the superclass Animal - Java
inheritance
8 Votes
2 Answers
10th May 2019, 2:54 AM
Shak 240
[SOLVED] can't override the method
help
java
overriding
super
superclass
8 Votes
7 Answers
23rd Feb 2021, 4:20 PM
Serana Zentha
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
8 Votes
2 Answers
23rd Aug 2016, 10:14 AM
Nardz
Subclass interact with other subclass?
c++
interact
subclass
superclass
8 Votes
2 Answers
16th Dec 2017, 12:42 AM
Coinage
help me with creating a program that will manage students and teachers.
class
java
loops
superclass
8 Votes
2 Answers
14th Jun 2017, 7:04 PM
Kurt Cobain
Is there an abstract data type like abstract method in java?
abstract
class
java
subclass
superclass
8 Votes
2 Answers
7th Mar 2020, 11:21 AM
D ̲E ̲S ̲S ̲I ̲E ̲- ̲B ̲A ̲H ̲I ̲R ̲U ̲
Final class
classes
final
java
subclass
superclass
8 Votes
2 Answers
25th Dec 2018, 10:37 AM
Nadjet KERBOUCHE
Why, using same String name variable in every class gives the name null except the last child class ( cinematographer)?
childclass
derivedclass
inheritance
java
parentclass
string
superclass
variables
8 Votes
4 Answers
12th Mar 2020, 2:50 PM
Rohan c
My coding Project
Algorithim
Biochemistry
class
DNA
Genetic
Lioplurodon
project
python
subclass
superclass
8 Votes
2 Answers
24th Feb 2017, 3:05 AM
Gram
Are there any good class examples i can look at?
abstract
implement
inheritance
instance
java
nested
static
subclass
superclass
8 Votes
1 Answer
7th Sep 2017, 8:59 AM
D_Stark
Ask a question
Ask a question
Hot today
It keeps throwing errors, I can't seem to understand the problem.
2 Votes
Streak extension
2 Votes
how to refill the heart in sololearn ?
1 Votes
Can you please tell me which is the best software to use and to code ( on software ) and it is beginner friendly
0 Votes
I need help with this code about template literal on JavaScript.
0 Votes
C# Lesson in Loops
0 Votes
Several entries in the same variable
0 Votes
Idea for sololearn
1 Votes
Can i combine Html,CSS , JavaScript with C/C++ codes
1 Votes
new course
0 Votes