answersLogoWhite

0


Best Answer

The "extends" keyword in Java is how you declare a subclass.

class Base {

void foo() {}

}

class Sub extends Base { //Sub is now a subclass of Base

void begin()

{

Sub s = new Base(); //cannot do this the other way around!

}

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

10y ago

The extends keyword is used for inheritance. The extends keyword is used in the derived class to indicate that a particular class (the derived class) is inheriting the characteristics of the base class.

e.g.

public class base_class

{

public void method_name()

{

body;

}

}

public class Extended_Class extends base_class

{

public void method_name()

{

body;

}

}

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does the keyword extends mean in BlueJ?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write programs in bluej?

by typing it in bluej


Differentiate between extends and implements keywords?

The extends keyword is used to extend/inherit the features of another class whereas the implements keyword is used when a class is implementing the features of an interface. Both these keywords are used during Inheritance


The Java keyword is used to declare a class as a subclass of another class?

class MyClass extends AnotherClass {}


Who are some of the Institutions that are using BlueJ?

BlueJ was developed mainly for educational establishments such as schools, colleges and universities. It supports the learning of object-oriented programming.


How do you implement inheritance in java?

Inheritance can be implemented in Java using the two keywords "extends" and "implements" Extends keyword is used when one class is expected to inherit the full functional behavior of another class. Implements keyword is used when one class is expected to take the skeleton features of an Interface and implement the functionality in the current class.


Can java beans be compiled through bluej?

Of course. A JavaBean is just a specially formatted class. Any Java compiler (or an IDE like BlueJ) will be able to compile it.


What Does Skills And Experience Keyword Mean?

It means one word that sums up both!


How can you become a good java programmer. Using Eclipse or even BlueJ?

It is suggested to take college courses in Java to become a good Java programmer using the programs Eclipse or BlueJ. These courses can be found in-class, or online.


How can you find the length of a single dimensional array in BlueJ?

array.length will return the number of elements in array.


What do you mean by this keyword in java?

"this" is a Java keyword that references the current object. Any part of the object(instance variables, methods, constructors) can be accessed by calling this.[member].


Is sizeof keyword in Java?

sizeof is not a keyword in Java but many classes have size() or length() methods, which can mean the number of elements, characters, etc. depending on the class.


What do you need to run blue j on your windows xp computer?

first of all you need java and to have all your computer updated. then you can download the free bluej program that is specially to intruduce java aplication. =P... have fun, u can do many tings with bluej...XD