answersLogoWhite

0

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

12y ago

What else can I help you with?

Related Questions

What are the key differences between a parent class and a grandparent class in object-oriented programming?

In object-oriented programming, a parent class is a class that is extended by another class, known as a child class. A grandparent class, on the other hand, is a class that is higher up in the inheritance hierarchy and is not directly extended by the child class. The key difference is that a parent class is directly related to the child class, while a grandparent class is further up the inheritance chain.


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.


What is inheritance Describe its various types with the help of program?

Inheritance is a mechanism in OOP where a new class inherits properties and behaviors from an existing class. The various types of inheritance include single inheritance (one class inherits from only one class), multiple inheritance (one class inherits from multiple classes), and multilevel inheritance (one class inherits from another which in turn inherits from another). Example of single inheritance: class Parent: def __init__(self, name): self.name = name class Child(Parent): def __init__(self, name, age): super().__init__(name) self.age = age child = Child("Alice", 25) print(child.name) print(child.age)


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.