answersLogoWhite

0

Can object extends

User Avatar

Anonymous

12y ago
Updated: 8/20/2019

objects are instances of class only and moreover objects are object reference variables extension of variables is meaningless so objects in java can't be extend

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Is it ever necessary to add extends Object to a class declaration?

No; that is the default. In other words, if you don't add "extends", the class will automatically inherit from the "Object" class.No; that is the default. In other words, if you don't add "extends", the class will automatically inherit from the "Object" class.No; that is the default. In other words, if you don't add "extends", the class will automatically inherit from the "Object" class.No; that is the default. In other words, if you don't add "extends", the class will automatically inherit from the "Object" class.


What do you call an object with one fixed endpoint that extends to infinity?

A ray.


What is an object with no thickness that extends infinitely in 2 directions called?

A line.


What is class hierarchies in java?

The top level class in Java is class Object. Every other class inherits from Object and therefore Object is the top most in the class hierarchy. If you extend a class from Object such as class Animal and further extend Animal with class Dog then the hierarchy is as follows: Object | Animal | Dog Code for this hierachy is as follows: class Animal { } class Dog extends Animal { } We don't need to write class Animal extends Object because every class extends from Object so it does not need to be stated.


What is hierarchy in java?

The top level class in Java is class Object. Every other class inherits from Object and therefore Object is the top most in the class hierarchy. If you extend a class from Object such as class Animal and further extend Animal with class Dog then the hierarchy is as follows: Object | Animal | Dog Code for this hierachy is as follows: class Animal { } class Dog extends Animal { } We don't need to write class Animal extends Object because every class extends from Object so it does not need to be stated.


What is an object that extends in two dimensions and looks like the shape of a tabletop?

A rectangle.


What happens when you pass an object as an argument to addAll fucntion of arraylist?

If the passed object extends Collection, then all the objects in collection are added to the arraylist.


What is the area of an object that extends past the edge of a page to compensate for variations in the output process?

bleeding


What is the name of the object that extends in two dimensions and is represented by a shape that looks like a tabletop?

a plane


Is constructor created automatically in java?

There is a default constriuctor that takes no argument for every class that extends Object.


What is the name of an object that extends in two dimensions and is represented by a shape that looks like a tabletop?

its called a plane


What is a spring balnce?

A spring balance has a fixed spring at one end and a hook at the other. An object is attached to the hook. The weight of the object extends the spring over a calibrated scale revealing the weight of the object