decoration decoration
Stories

GROKLAW
When you want to know more...
decoration
For layout only
Home
Archives
Site Map
Search
About Groklaw
Awards
Legal Research
Timelines
ApplevSamsung
ApplevSamsung p.2
ArchiveExplorer
Autozone
Bilski
Cases
Cast: Lawyers
Comes v. MS
Contracts/Documents
Courts
DRM
Gordon v MS
GPL
Grokdoc
HTML How To
IPI v RH
IV v. Google
Legal Docs
Lodsys
MS Litigations
MSvB&N
News Picks
Novell v. MS
Novell-MS Deal
ODF/OOXML
OOXML Appeals
OraclevGoogle
Patents
ProjectMonterey
Psystar
Quote Database
Red Hat v SCO
Salus Book
SCEA v Hotz
SCO Appeals
SCO Bankruptcy
SCO Financials
SCO Overview
SCO v IBM
SCO v Novell
SCO:Soup2Nuts
SCOsource
Sean Daly
Software Patents
Switch to Linux
Transcripts
Unix Books

Gear

Groklaw Gear

Click here to send an email to the editor of this weblog.


You won't find me on Facebook


Donate

Donate Paypal


No Legal Advice

The information on Groklaw is not intended to constitute legal advice. While Mark is a lawyer and he has asked other lawyers and law students to contribute articles, all of these articles are offered to help educate, not to provide specific legal advice. They are not your lawyers.

Here's Groklaw's comments policy.


What's New

STORIES
No new stories

COMMENTS last 48 hrs
No new comments


Sponsors

Hosting:
hosted by ibiblio

On servers donated to ibiblio by AMD.

Webmaster
I think my confusion is the Java nomenclature | 314 comments | Create New Account
Comments belong to whoever posts them. Please notify us of inappropriate comments.
I think my confusion is the Java nomenclature
Authored by: Ian Al on Monday, May 07 2012 @ 03:03 AM EDT
In the real world, a class is a classification. A box of frogs contains green, tree and poison frogs. If one is looking for a box to put your frogs in, you look for the one labelled 'Frogs'. My big book about Python says this:
Class objects provide default behaviour and serve as factories for instance objects. Each time you call a class, you get a new instance of that class.
You can see why I thought objects created by class calls acquire the properties of the class. In Python, class objects acquire the attributes of the classes above it in the hierachy.

I stole this from another comment.
The members of a class type are classes, interfaces, fields, and methods. Members are either declared in the type, or inherited because they are accessible members of a superclass or superinterface which are neither private nor hidden nor overridden. The members of a class type are all of the following:

  • Members inherited from its direct superclass, if it has one (the class Object has no direct superclass)
  • Members inherited from any direct superinterfaces
  • Members declared in the body of the class
  • From what you say (save for interfaces), all Java classes dangle, directly or indirectly, from the Object class. Looking at the Google opening slides, they give the example:

    java.lang.Math.max()
    Package(java.lang). Class(Math). Method(max())

    I assume that Math is a class object and has Object as a superclass. Is the 'inheritance' just that the designer has decided that it suits him for max() to be in the Math class and have access to other members of the class and of members in its superclass tree?

    Object orientation is optional in Python. If you just want a box of frogs... uhm... functions, you define them in a module file. The module file is the package. Is that what is going on for the Java APIs? Is it just a choice of which functions to put in which box and which box to put in a package?

    Are Java classes all about object organisation and not about object creation?

    Don't go to any trouble to reply: I'm not that fussed. I'm sticking to my box of frogs and a big snake.

    ---
    Regards
    Ian Al
    Software Patents: It's the disclosed functions in the patent, stupid!

    [ Reply to This | Parent | # ]

    Groklaw © Copyright 2003-2013 Pamela Jones.
    All trademarks and copyrights on this page are owned by their respective owners.
    Comments are owned by the individual posters.

    PJ's articles are licensed under a Creative Commons License. ( Details )