Abstract classes in java
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   salla_nagesh
Posted On:   Wednesday, March 21, 2007 05:12 AM

Can you create a constructr in an abstract classes? If Not, give reason.

Re: Abstract classes in java

Posted By:   rahul123  
Posted On:   Tuesday, December 17, 2013 09:09 PM

Abstract Class - 
If we don't want to create an object of the class then we should declear class as abstract
abstract class contain abstract method, concrete method or both its depend our requirement .

Example-  Adapter class because  adapter class contain only empty emplementation of  method so if we are create an  object of that  class and call this method then their is no use so its better to make a class as abstract.

Re:collection classes

Posted By:   Anonymous  
Posted On:   Thursday, June 14, 2007 04:16 PM

Question:Can we Store the primitive data type values into Collection classes.

Re: Abstract classes in java

Posted By:   WarnerJan_Veldhuis  
Posted On:   Wednesday, March 21, 2007 06:24 AM

yes you can
About | Sitemap | Contact