• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Abstraction and Polymorphic

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am new to Java . What is exactly meant by Abstraction and Polymorphic ? Please can anyone explain in simple terms..

many thanks
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nisha,
I suggest you to buy "HeadFirst" java text . For time being you can look at this link http://jobs4j.com.
All the best

-regards
 
Marshal
Posts: 79151
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch
 
Ranch Hand
Posts: 1164
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

nisha rai wrote:Hi,
I am new to Java . What is exactly meant by Abstraction and Polymorphic ? Please can anyone explain in simple terms..

many thanks



What is the English dictionary meaning of these words Nisha? Can you look up and tell me?
 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mansukhdeep Thind wrote:
What is the English dictionary meaning of these words Nisha? Can you look up and tell me?



That won't help much for understanding what they mean in Java.
 
Mansukhdeep Thind
Ranch Hand
Posts: 1164
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why not Jeff? One can always relate the English meaning to their meaning in Java.
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mansukhdeep Thind wrote:Why not Jeff? One can always relate the English meaning to their meaning in Java.



Once we know the specifics of what they mean in Java, we can look back and see how they relate to their more general meanings. But the meanings in Java are too specialized to be intuited from the general English meanings, especially if one is new to programming.

If a newcomer sees the phrase "abstract method", it's extremely unlikely that he'll be able to gain any useful understanding of what that means in Java just based on the general English meaning of the word.
 
Mansukhdeep Thind
Ranch Hand
Posts: 1164
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ans: Abstraction and Polymorphic are two important principales of OOPS.

Abstraction : It means hidding the implementation details from public interface. Public interface means that eg: If your code or class is using by another programmers, you can change the implementation without braking the code of others .It provide full flexibility and maintainability to your code.

other example: you can use abstraction by making instance variable private and method public . you can altering the way of using variable without change the way of call your method by others.\\

Polymorphism: Poly+morphism means that many+form. In layman language ,one human being plays more than one role in single life like (husband,son etc).
In java all java objects are polymorphic because they pass the IS-A test for their own type and class object.

example: single java object may object, animal, fruit.
 
Ranch Hand
Posts: 91
IntelliJ IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Nisha,

Welcome to the ranch . It is very important for you make sure that you get the concepts right from the beginning. So what I'd suggest is theory with practical. Like Manjesh suggested pick up a copy of a Head First Java Book, they have some good theory with some practical exercises for encapsulation, polymorphism, inheritance (It's interfaces and abstract classes in Java though). It will take some time, but doing those exercises would be extremely helpful and you'll a firm grasp of OOP concepts...
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The best way to learn Java is by video. Check out http://www.youtube.com/user/patrickwashingtondc
It's much easier than head first Java.
 
Campbell Ritchie
Marshal
Posts: 79151
377
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

friends romans wrote:. . . Check out http://www.youtube.com/user/patrickwashingtondc
. . .

That tutorial is a poor resource.
 
I can't take it! You are too smart for me! Here is the tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic