Author Topic: i need help  (Read 5001 times)

0 Members and 1 Guest are viewing this topic.

Offline helpMEimDYING

  • LV0 Newcomer (Next: 5)
  • Posts: 1
  • Rating: +0/-0
    • View Profile
i need help
« on: January 22, 2013, 09:58:22 pm »
hello, im having some trouble with java terminology and it would be greatly appriciated if someone could help me define any of the terms they know
extends
interface
excapsulation
package
fields

thank you
« Last Edit: January 22, 2013, 10:12:00 pm by helpMEimDYING »

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: i need help
« Reply #1 on: January 22, 2013, 10:16:00 pm »
I'm not that great with terminology myself, but there's a glossary of java terms here http://www.cs.kent.ac.uk/people/staff/djb/oop/glossary.html#f
« Last Edit: January 22, 2013, 10:16:20 pm by epic7 »

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: i need help
« Reply #2 on: January 22, 2013, 11:34:39 pm »
hello, im having some trouble with java terminology and it would be greatly appriciated if someone could help me define any of the terms they know
extends
interface
excapsulation
package
fields

thank you
I haven't used java in forever so I might be wrong on some of these, but this is what I think I remember.

extends is how java does inheritance. When you say one class extends another you say that it inherits from it. I can't remember what exactly it takes from the parent class though.

I believe an interface is one level below a class. It is a basic setup for a class that tells you what must be in any class that implements(or maybe extends I don't remember which term it is) it. It is used to be able to assure that multiple classes will have the members and methods you need for a task.

excapulation I don't even remember having heard before sorry.

A package is usually something that you can include/import into your program to get all of the classes and methods defined in it.

fields can have lots of meanings so I'm not sure what its asking for here.
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: i need help
« Reply #3 on: January 22, 2013, 11:48:19 pm »
Extend means the child inherits everything from the parent.

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Re: i need help
« Reply #4 on: January 23, 2013, 02:54:01 am »
Interface is similar to a class in that methods in a class that "implements" an interface have the same methods as it. Interfaces can only have virtual members and are useful for having multiple classes that use similar methods.

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline SpiroH

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +153/-23
    • View Profile
Re: i need help
« Reply #5 on: January 23, 2013, 05:10:38 am »

Offline ghest1138

  • LV2 Member (Next: 40)
  • **
  • Posts: 27
  • Rating: +0/-0
  • HueHueHue
    • View Profile
Re: i need help
« Reply #6 on: January 23, 2013, 11:20:26 am »
If you do a google search for "java tutorials", the one on the oracle website(the official tut) is really great! It's where i learned most of my programming skillage.

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: i need help
« Reply #7 on: January 23, 2013, 04:53:49 pm »
Packages are literally folders, accessed with a dot instead of a slash. You need to import them to get any code files stored inside those folders, and certain parts of the access permissions are defined by things being in similar or dissimilar packages.

Fields typically refers to everything defined inside of a class, for example any class variables.
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline ghest1138

  • LV2 Member (Next: 40)
  • **
  • Posts: 27
  • Rating: +0/-0
  • HueHueHue
    • View Profile
Re: i need help
« Reply #8 on: January 23, 2013, 04:58:27 pm »
An interface is a type that defines the methods that you want certain classes to use. It is useful, for example, to make it easier to define new classes that will be interacting in the same way as other existing classes that implement that interface.