It's not a secret anymore!*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Regarding Abstraction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Regarding Abstraction" Watch "Regarding Abstraction" New topic
Author

Regarding Abstraction

sukhavasi vasavi
Ranch Hand

Joined: Jul 18, 2007
Posts: 59
Can we relate Abstract class with the abstraction?
phani bhushan reddy
Greenhorn

Joined: Jul 20, 2007
Posts: 27

could you please post your question clearly
sukhavasi vasavi
Ranch Hand

Joined: Jul 18, 2007
Posts: 59
Abstraction in terms of Dictionary word.
Abstract class is related with that?
sukhavasi vasavi
Ranch Hand

Joined: Jul 18, 2007
Posts: 59
Abstraction in terms of Dictionary word.
Abstract class is related with that?
Deepinder Singh
Greenhorn

Joined: Jul 05, 2007
Posts: 10
An abstract class is not a concrete implementation...it either provides some(zero or one) implementation for methods it inherits from another class or implements an interface....

An abstract class cannot be used directly....the first concrete implementation in the inheritance hierarchy will provide all or some features/behavior that would be that of an abstract class...here the abstraction is the behavior which belongs to an abstract class which is inherited by the concrete class....
for eg.

class Parent{
public void method1(){}
}
abstract class Child extends Parent{
public void method2(){}
}
public class Concrete extends Child{
public static void main(String args[]){
new Concrete().method2();//the method2 is behavior inherited and //abstracted out in the code of class Child.
}
}


Achievements are like fire flies, there is no point clinging on to them as they are not visible the next day morning.
Burkhard Hassel
Ranch Hand

Joined: Aug 25, 2006
Posts: 1274
Howdy "Deepinder Singh M" !

This seems to be one of your first postings, so

Welcome to the Ranch!




Hope you'll enjoy.




Only one small issue: The Java Ranch follows a certain policy regarding user names.
The main reasons why and a link how to change yours you'll find here:
http://www.javaranch.com/name.jsp


So, could you please change your user name before your next posting?
It will not affect anything you've already posted here. Just your user name will update.

Regards,
Bu.


all events occur in real time
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding Abstraction