473,473 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Where good example of code for creating a Class ?

tmb
I'm a newbie to Java and more or less to OOP...

1 - Where will I find a good example of java code that actually creates...

A Class
... with Class variables
... with Methods
... constructors
... other elements that may be in a class

2 - Finally, everything in Java starts with a Class... right?
3 - Then you create an instance of a Class and call it an Object... right?
4 - And that object inheriets all the properties of the parent class...
right?
5 - Meaning it inheriets the classes methods and placeholders for its
variables... right?)
6 - But can there after be refered to by the name you assign it when you
created it... right?

thanks for any help - tmb
Jul 17 '05 #1
2 1590
drop down to your local book store and pick up the following:

java certification
http://www.amazon.com/exec/obidos/tg...books&n=507846

craig larman, applying uml & patterns
http://www.amazon.com/exec/obidos/AS...336270-8466308

take two weeks to go over the material

right now, it's the shortest distance between point a and b for you

- perry

tmb wrote:
I'm a newbie to Java and more or less to OOP...

1 - Where will I find a good example of java code that actually creates...

A Class
.. with Class variables
.. with Methods
.. constructors
.. other elements that may be in a class

2 - Finally, everything in Java starts with a Class... right?
3 - Then you create an instance of a Class and call it an Object... right?
4 - And that object inheriets all the properties of the parent class...
right?
5 - Meaning it inheriets the classes methods and placeholders for its
variables... right?)
6 - But can there after be refered to by the name you assign it when you
created it... right?

thanks for any help - tmb


Jul 17 '05 #2
"perry" <an***********@yahoo.com> wrote in message
news:i9*******************@news20.bellglobal.com.. .
drop down to your local book store and pick up the following:

java certification
http://www.amazon.com/exec/obidos/tg...books&n=507846
craig larman, applying uml & patterns
http://www.amazon.com/exec/obidos/AS...336270-8466308
take two weeks to go over the material

right now, it's the shortest distance between point a and b for you

- perry

http://java.sun.com/docs/books/tutorial/ would likely be shorter. In the
future please post to comp.lang.java.help. This group is obsolete.
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Tom | last post by:
How can you figure out exactly where in the classpath a class is located ? For example, assume that my computer has a class "com.MyCompany.MyClass" that is physically located in the jar-file...
0
by: John D. | last post by:
Does anyone have any good example code that shows how to use the "anydbm"wrapper tp interface with a very simple database. like some examples ofhow to use "dumbdbm"? Then perhaps at a later time,...
3
by: John Gabriele | last post by:
Can anyone please point me to a good UML tutorial that contains C++ example code? The stuff I've found on the web and on the bookstore shelves doesn't contain any actual C++ code. Googling, so far...
5
by: GaryB | last post by:
The following line of code works fine in my code-behind file for an aspx page: Dim HeadingRow As DataRow = dsGridReport.Tables(0).NewRow() But when I transport that same code to a class and...
6
by: cj | last post by:
Lets just take this example I'm looking at now. I'm looking at the help screen titled .NET Framework Class Library FolderBrowserDialog Class . It gives an example at the bottom that begins with:...
26
by: Martin Jørgensen | last post by:
Hi, I don't understand these errors I get: g++ Persort.cpp Persort.cpp: In function 'int main()': Persort.cpp:43: error: name lookup of 'j' changed for new ISO 'for' scoping Persort.cpp:37:...
0
by: Annie | last post by:
hello guys, Is there any good example of using object data sources using asp.net source. I am looking for any example, any onle resource that exaplains in details all the details of using it...
67
by: gator | last post by:
I am quite new to XML and posted a request for example code yesterday. Unfortunately, I did not do a very good job in explaining what I was looking for. Here is an example of a small piece of the...
1
by: GVDC | last post by:
Example server-side JavaScript Web script, Dictionary class //Dictionary class, hash array unlimited length configurable speed/efficiency // printf("<html><body>"); printf("<b>Creating...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.