Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

157 Neutral

About PreditorX0789

  • Rank
  1. Welcome to this great lesson of Java Programming. In this lesson, I will discuss what OOP (Object Oriented Programming) is, the difference between a class and an Object. Classes and Objects, Messages and Methods, and how to compile and Run a Program. Vocabulary: * Hardware * Software * Object-Oriented Programming Ok let's begin Smiley!! Object-Oriented Programming (OOP) represents an attempt to make programs more closely model the way people think about and deal with the world. In object-oriented programming, a program consists of a collection of interacting objects. The world in which we live is filled with objects. Java is an OOP programming language and in this lesson we will go over what OOP is all about. Ok, Something that is intangible means that you can not touch it. On the opposite side of that, something that is tangible means that you can touch it. But what does this have to do with programming? Well, in the computer industry you have what is called hardware and software. First lets begin with hardware, or the tangible parts of the computer. Say for instance you record a movie onto a cassette tape. The actual tangible part of the movie would be the cassette tape, but the intangible part of the tape would be the movie. You can think of this analogy like this: the movie being the softaware and the tape being the hardware. The good thing about the computer system is that it combines tangible objects, hardware, with conceptual components, called software. Here's another analogy to think about: What if you had the book called "The Lord of The Rings, The Hobbit," and you tore it up into shreds and put it through a shreding machine. Have you destroyed the book? If your answer was yes then you are incorrect because you did not destroy the intangible book but you actually destroyed the book itself. Make sense? Anyways, it is very important to understand what tangible and intangible means. Let's take a look at this program to give you a better understanging. /** * DrawSquare This class will create a piece of paper and a pencil, * place the pencil on the paper and then draw a square 100 units on * each side. */ import apcslib.*; import java.awt.Color; public class DrawSquare { /** * The main program for the DrawSquare class * * @param args The command line arguments (not used) */ public static void main(String[] args) { //Instantiating Variables DrawingTool pencil; SketchPad paper; DrawingTool eraser; //Declaring Variables paper = new SketchPad(1900, 1900); pencil = new DrawingTool(paper); eraser = new DrawingTool(paper); // draw the square pencil.forward(1000); pencil. pencil.turnLeft(90); pencil.forward(1000); pencil.turnLeft(90); pencil.forward(1000); pencil.turnLeft(90); pencil.forward(1000); } } Now, let's break down each and every little aspect of this code. An object in programming is an abstraction for a real-world object. For example, a drawing tool is an attempt to model the attributes and behaviors of a pencil or pen, etc. As a programmer, we need some way of knowing what is the "blueprint" in the code. We call the blueprint of the code, the class. A class in Java programming, varies from state to state meaning, that it can be used many times to make many different things such as a stamp. Each imprint is an object and each one has its own individual properties such as "size" and "position." Different stampings may have different characteristics, even though they were all made with the same rubber stamp. (not complete). I am writing this on the day of February 14, 2006 at 10:44PM and now I must go to bed but I hope you all enjoy my journal on Java Programming
  2. PreditorX0789

    [web] designing your own website

    oh i see thank you for sharing this info with me
  3. PreditorX0789

    [web] designing your own website

    thanks so much moderator for clarifying what I need to do. I'm sorry for having all my information just all jumbled up :) but I was at school when I typed that and I was just thinking of the things I wanted to ask off the top of my head. So, without further or due, PreditorX0789 will be learning PHP, MYSQL, Advanced HTML, PERL, ActionScript, javascript, (I'm currently learning Java), and any other scripting languages that will help me
  4. Ok, I currently have someone designing my website but it's taking them forever to do it so, I would like to know what do I need to learn in order to create a very good website with the following things: before you read this, I need to inform you that I know that you need to know html which I already know. A website with: with flash/without flash movies and music an online store and a community board where you can upload music, movies, program files such as .c,.c++, etc, and RSS feed capabilities I already have a domain and someone hosting it too. I would like to know how can I get more traffic to my site as well now I know that they have scripts that are free such as simple machines forum and they also have one's that you have to purchase such as Invision Power Board. What I would like to know is what scripting langague do I need to learn to create my own forum? Also, I would like to create the website with textpad or dreamweaver. I really need to learn how to create my own website so that I can begin a sub business for my record label that only designes websites for companies. If anyone has any good sources or references please let me know because I'm tired of wating on this guy that I was going to pay to do my website.
  5. PreditorX0789

    [web] Putting GameDev.net ads on my website

    ok thanks a lot for the info I see that I can contact advertising@gamedev.net to ask permission on advertising their site on my website. and once again thank you for the information.
  6. Hello everyone, you all may not know me very well, but I've never posted but I am a Game Dev.net member :). I would like to know how can I get ads on my website and if I do get ads for them do I have to pay the company or do they have to pay me? I would also like to know as to how putting ads on your website period works becasue I have a record company and I would like to help promote other businesses by putting ads on my community advertisement board. If you would like to see my community board please visit www.jivecityrecords.com/forum but, I currently do not have my home page up right now because it's in the process of being remodeled. If you could please respond to this thread I would really appreciate it because I am wanting to begin an ecommerce business as well as a recording company :) Thank you for your time and concern.
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!