Gajendra Kangokar wrote:Now what is this concrete class.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
http://plainoldjavaobject.blogspot.in
Not at all. A class is called concrete when it is not abstract.Lalit Mehra wrote:A class is called concrete when it defines all the member and inherited methods and which can be instantiated.
Campbell Ritchie wrote:Not at all. A class is called concrete when it is not abstract.
http://plainoldjavaobject.blogspot.in
Lalit Mehra wrote:
Campbell Ritchie wrote:Not at all. A class is called concrete when it is not abstract.
Ok. But i think a abstract class cannot be instantiated while a concrete class can be.
A concrete class also gives definition to all the inherited methods and the once which are specific to the concrete class.
Isn't it so ?
You can create an anonymous class from an abstract class and instantiate it like that. That is not strictly instantiating the abstract class however.Lalit Mehra wrote: . . . Ok. But i think a abstract class cannot be instantiated while a concrete class can be.
You can have abstract classes with all methods implemented.A concrete class also gives definition to all the inherited methods and the once which are specific to the concrete class.
Isn't it so ?
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski wrote:A concrete class is a named class that is not abstract; simple as that.
Jeff Verdegan wrote:Any particular reason for restricting it to named classes? I'm not aware of any official definition, but I would consider anonymous classes to be concrete as well. I've always taken it to mean, simply, "not abstract," as Campbell is saying.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Gajendra Kangokar wrote:Yes Winston,
it is bit clear now that a concrete class is a simple non-abstract class where a reference variable of the same can be created to point a new object.
James Peterson wrote:Hi Gajendra ,
An abstract class is meant to be used as the base class from which other classes are derived. The derived class is expected to provide implementations for the methods that are not implemented in the base class. A derived class that implements all the missing functionality is called a concrete class .
Don't get me started about those stupid light bulbs. |