Programming Tutorials

(追記) (追記ここまで)

How to define an Abstract class?

By: Karthik in Interview Tutorials on 2012年06月16日 [フレーム]

Answer: A class containing abstract method is called Abstract class. An Abstract class can't be instantiated.

Example of Abstract class:

abstract class testAbstractClass { 
 protected String myString; 
 public String getMyString() { 
 return myString; 
 } 
 public abstract string anyAbstractFunction();
} 



(追記) (追記ここまで)


Add Comment

JavaScript must be enabled for certain features to work
* Required information
1000

Comments

No comments yet. Be the first!
(追記) (追記ここまで)
(追記) (追記ここまで)

AltStyle によって変換されたページ (->オリジナル) /