Java General - Defining Abstract Classes
Interview Question Database For Software Developers
|
|
| Defining Abstract Classes | | How to define an Abstract class? | | By: FYIcenter | Defining an abstract class is done using the
keyword "abstract". Here is an example of abstract
class:
abstract class MyAbstract {
protected String myString;
public String getMyString() {
return myString;
}
public abstract string getMyStringInYourWay();
}
| | ID: 91 | Rank: 1369 | Votes: 0 | Views: 271 | Submitted: 20070303 |
1344 :-) | | Iterator Interface | | Is Iterator a Class or Interface? What is its use?... | | Submitted: 20070303 |
|
1335 :-) | | CLASSPATH Environment Variable | | If a class is located in a package, what do you need
to change in the OS environment to be able to use it?... | | Submitted: 20070303 |
|
Copyright © 2009 FYIcenter.com
All rights in the contents of this Website are reserved by the individual author.
No part of the contents may be reproduced in any form without author's permission.
|
|
|