Question :What does the "abstract" keyword mean in front of a method? A
class? (CoreJava)
Answer :Abstract keyword declares either a method or a class. If a method has a
abstract keyword in front of it,it is called abstract method.Abstract method
hs no body.It has only arguments and return type.Abstract methods act as
placeholder methods that are implemented in the subclasses.
Abstract classes can't be instantiated.If a class is declared as abstract,no
objects of that class can be created.If a class contains any abstract method
it must be declared as abstract
www.interviewhelper.org is a hope for all the Job seekers. Users can find unlimited here. These range from technical to HR, from functional to behavioral. www.interviewhelper.org contains in the fields like Ajax,VB,Networking,Sharepoint,JEE,Perl,Javascript,Bioinformatics,Classic ASP,Unix,Linux,Accounting,Oracle DBA,Microprocessor,Bluetooth,jms,jme,.net framework,ABAP,ASP,ASP.net,Basic .net Framework,Interview Questions,C language,C++,database,Oracle,Java,PHP,LAMP,SAP etc.
Thursday, March 12, 2009
What does the "abstract" keyword mean in front of a method A class (CoreJava)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment