Search:

Type: Posts; User: helloworld922

Search: Search took 0.13 seconds.

  1. Replies
    14
    Views
    17,877

    Sticky: Re: General CS concepts

    Passing by Value or Reference?

    First, let's review what values and references are.

    A value is the actual data of bits and bytes which contains useful information (such as the amount of money...
  2. Replies
    14
    Views
    17,877

    Sticky: Re: General CS concepts

    Exceptions

    Exceptions are special things that interrupt normal program flow. They're used to create robust methods that follow their contracts exactly. Here's a small example:


    // * note: this...
  3. Replies
    14
    Views
    17,877

    Sticky: Re: General CS concepts

    Variables and Objects

    Variables and objects are basically things you can hold (err, that the computer can hold in memory). They store some sort of data that represents something. We'll start by...
  4. Replies
    14
    Views
    17,877

    Sticky: Re: General CS concepts

    Recursion

    For those who don't know what recursion is (and like a good laugh), click on this link: Google search: Recursion and click on the "did you mean..." item.

    Hopefully you've finally...
  5. Replies
    14
    Views
    17,877

    Sticky: Re: General CS concepts

    Polymorphism

    Polymorphism means to view an object as several different things. Here's a simple example: A Fararri Enzo is a Fararri, which is a car, which is an automobile, which is a vehicle,...
  6. Replies
    14
    Views
    17,877

    Sticky: Re: General CS concepts

    Methods and Functions

    For all intensive purposes, methods and functions are exactly the same. Somehow, along the way Java programmers decided they wanted to call functions as methods. Also, if you...
  7. Replies
    14
    Views
    17,877

    Sticky: Re: General CS concepts

    Interfaces

    Interfaces are also known as purely abstract classes: they contain only abstract methods. An abstract method is one that has not been implemented, but defines how that method is called...
  8. Replies
    14
    Views
    17,877

    Sticky: Re: General CS concepts

    Inheritance

    The concept of inheritance is similar to inheritance in real life: the child gets what the parent has. Also, the child still has what the child had, and can more-or-less do what it...
  9. Replies
    14
    Views
    17,877

    Sticky: Re: General CS concepts

    Encapsulation

    Encapsulation is a similar idea to Abstraction. It deals with restricting access to components of an object. A good analogy would be airport security. You're not allowed to bring...
  10. Replies
    14
    Views
    17,877

    Sticky: Re: General CS concepts

    Abstraction

    Abstraction is the concept of hiding away the details. It can basically be summed up with this phrase: I don't care how it happens, just get it done.

    There are many ways to abstract...
  11. Replies
    14
    Views
    17,877

    Sticky: General CS concepts

    This is a post for general CS concepts. To make it easy to link to, i've posted each different concept under their own post. The emphasis will be on OOP (object oriented programming), and examples...
Results 1 to 11 of 11