answersLogoWhite

0

Can class be the child of another class?

Updated: 8/20/2019
User Avatar

Wiki User

11y ago

Best Answer

Of course. ALL classes in Java are the child of another class. Even ones which don't appear to be, actually are a child of the master Object class.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can class be the child of another class?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can a parent class access the functions of child class?

no, Parent class can not access the members of child class ,but child class can access members of parent class


What is the use of reusability in inheritance?

Inheritance in Java refers to the feature wherein the code/functionality of one class can be used in another class that extends this class. Example: public class Parent { ... .. } public class Child extends Parent { ... .. . } Here the class Child extends the class Parent and hence the methods of Parent are available for Child to use. This way we are re-using the code in the parent class in the child class instead of re-writing the whole thing again.


Is every class in java is subclass of itself?

A class can be a subclass of another class, not of itself.A class can be a subclass of another class, not of itself.A class can be a subclass of another class, not of itself.A class can be a subclass of another class, not of itself.


Can the principle have the right to move a child to another class room with out asking the parent?

They have that right in all the schools my kids went to.


How do you create object name for child class in c?

child a=new child();


What is function overriding in Java?

Method overriding is similar to method overloading, with a small difference. In overriding, a method in a parent class is overridden in the child class. The method in the child class will have the same signature as that of the parent class. Since the method in the child class has the same signature & name as the method of its parent class, it is termed as overriding. In situations where you may have to explicitly call the parent class method you can use the "super" keyword and for explicitly calling the current objects method you can use the "this" keyword.


What will a parent of a child in your class say about you?

it depends on who the child is and if you have hurt that child teased that child and things like that


Why do kids sit during recess?

Because they have no one to play with. Or there friend is in another class and go to recess differnt days and someone just does not like them. Or there friend is playing with there other friend or ur child does not want to have anything to do because ur child does not get asked ur child proably has never asked proably but u should tell ur child to ask and make friends in ur class


What is another name for upper class?

another name for upper class 4 letters


Difference between inheriting a method and overriding?

Inheriting a method means - a class is able to use a method that is declared in its parent class. Because of inheritance we need not re-declare the method in the child class again but still use it as it is. Overriding means re-declaring a method that is already available in the parent class in the child class to alter its features as per the requirement in the child class.


What does a teacher need to know about the Down syndrome pupil in the class?

How bad is the Down syndrome?Can the child communicate and understand in the class?Can the child read and write?


looking for a child care licensing class in the tampa area?

The only child care licensing class I could find in your area is at Rasmussen College.