• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

Explain

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1.polymorphysm vs encapsulation.
2.inheritence
3.abstract vs inheritance
4.Hash Map
5.Array List
6.Hash Table vs vector
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by jerry andy:
1.polymorphysm vs encapsulation.
2.inheritence
3.abstract vs inheritance
4.Hash Map
5.Array List
6.Hash Table vs vector



Could you give us some idea of what parts you're having trouble with? What questions, specifically, do you have about these concepts?

Regards,

- Jeff
 
jerry andy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jeff,

I need the definitions and the differences and would be happy if you can give an exaple for the same
 
Bartender
Posts: 1205
22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
More specifically, we're always happy to help, but we WON'T do your homework for you from the ground up.

Let's take number 1. Do you know what polymorphism is, even if it's a verbatim reiteration of a definition from the glossary in some text book? Do you know what encapsulation is? Do they work together or are they diametrically opposed (or something inbetween)?
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First, please do some research yourself.

A place to start with regard to terms like polymorphism, inheritance and encapsulation is for example Wikipedia or Google.

To learn about standard Java classes like HashMap, ArrayList etc. is the Java API documentation.

Also, try doing a search in the forums here, because what you ask has been discussed many times before here; you'll quickly find answers if you search around a bit.
 
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
regarding vector, lol, today in "software engineering" vector came up..

and was described as "like an array but more powerfull", because it's

size can change, but was also noted as "less efficient"..

here is the example code i saw...



evidently Iterator is an interface, with .hasNext() and .next()
as abstract methods...

basically my question is, how do vectors work?

and does Iterator only modify vectors?

Justin
 
Ranch Hand
Posts: 1296
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually that code is not entirely correct. It would be:


JF: ...does Iterator only modify vectors?

All implementations of the java.util.Collection interface have an iterator() method which returns an Iterator which can iterate over the elements of that Collection
[ August 31, 2006: Message edited by: Garrett Rowe ]
 
rubbery bacon. crispy tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic