JCC CSC 1590 Computing Fundamentals I

Fun For Everyone

pg 382 – 400:




Please respond in 3:2:1 fashion.  This section covers our notes from Monday on parameter passing and objects vs. primitive.  Pay special attention to the memory storage diagrams… They are very helpful.

Create a free edublog to get your own comment avatar (and more!)

32 Responses to “pg 382 – 400:”

  1.   Lbboy45 Says:

    1) Void methods do not have return statements.
    2)Formal parameters of primitive data types have no connection to the actual parameter that it retained its value from.
    3)Changing the value of a refernce variable changes the value of the actuasl variable.
    1)How do you get information out of void methods?
    2)what are some examples of refernce variables?
    1)The use of refernce variables can change the output of a program because the refernence variables can effect the original primitive data types.

  2.   Captain Charisma Says:

    1. Void Methods are methods that do not havea return type.
    2. Void methods are not called in an expression.
    3. To call a void method, you use the method name together with the actual parameters.

    1.What are the benefits to using the new operator?
    2. Is it better to use the new operator or just use primitive data types/

    1. Knowing how to use the new operator will help solve this lab.

  3.   nezumigraverobber Says:

    1) Void methods can have a formal parameter but does not need one.
    2) Parameters provide a link between the calling method and the called method.
    3) Reference variables can pass value(s) from a method and can change the actual parameter value.

    1) How many parameters can be set for one method?
    2) When and why would we use a reference variable?

    1) Hopefully this section ties into what we’re doing in lab. There’s a lote to this one so a little more information could be a big help.

  4.   Kull-The Conquerer Says:

    1. we use the operater new to allocate memory for an object belonging to a specific class.
    2.When a method is called memory for its formal parameters and variables declared in the body of the method, called local variables, is allocated in the method data area.
    3.If a formal parameter is of the primitive data type and the corresponding actual parameter is a variable, the the formal parameter cannot change the value of the actual parameter.

    1.How are reference variables as parameters useful.
    2.What is memory allocation.

    1.This is hard and I am going to be needing a lot of help on my program.

  5.   Andrea Says:

    1.) because these methods don’t have parameters they are usually good for displaying information about the program or printing statements.
    2.) when using an actual parameter list the actual parameters and there data types must match the formal parameters in the order geiven.
    3.) reference variables do not hold value, they point to a place where the data is stored.

    1.) if a void method cannot return information how is it able to print statements?
    2.) can you use more than one type of method at once?

    1.) what is the overall purpose of refence variables?

  6.   Jordan O. Says:

    1.) You can place user-defined void methods either before or after the method main.

    2.) Because void methods do not have a data type, they are not used in an expression.

    3.) If a formal parameter is of the primitive data type and the corresponding actual parameter is a variable, then the formal parameter cannot change the value of the actual parameter.

    1.) Why is there no connection between the formal parameter and the actual parameter when the formal parameter is of the primitive data type?

    2.) What happens if a formal parameter is a referance variable?

    1.) I am somewhat confused by this however if we go over it in class than I should be able to get the jist of it. The hardest part of going on vacation is coming back to reality.

  7.   horselover Says:

    we use new to allocate memory for an object
    class string does not contain any method that allows you to change an existing string
    any time the variable gets changed the reference get changed too

    why do we have to do so many step and have so many references for one thing
    why cant we have one method that does it all

    i think that the pointing and different references will be the hardest to do

  8.   GOD Says:

    1.)void methods lack a return type.
    2.) void methods are sometimes not called.
    3.) to use a void method you need the parameters.
    2.) can you use multiple methods simultaneously?
    1.) Can void methods be used without given parameters?
    1.) This is very hard. im stuck on my program and i think a need a lil help.

  9.   Courtney Mail (will not be published) (required) Says:

    1. Void methods do not have a return type.
    2. In a mthod call the numer of actual parameters, together with their data types, much match the formal parameters in the order given.
    1. for loops can create star patterns

    1. If you want to return more than one value should i use reference vairbales are parameters?
    2. what is the difference between parameters and variables?

    1. I hope that someday I can tell the difference between these things!

    1.

  10.   SmagaMarsof Says:

    Dear Customers!

    START SAVING YOUR TIME AND MONEY!

    Order your medication in 3 easy steps:

    1. Search our alphabetical index of medications to view great prices and detailed drug information.

    2. To place an order, find your medication and click “Buy now”

    3. Click on “Checkout” to complete your order!

    ADVANTAGES OF SHOPPING WITH US:

    1. Convenience – open round the clock, unlike your regular drug store to meet all your medicinal needs;

    2. Security – any personal information and purchases you make remains private;

    3. Quality – we sell only genuine drugs;

    4. Easy Usage – easy ordering process, with clear and easy to understand instructions;

    5. Guaranteed Lowest Prices on the Internet – no comments, check prices now!

    Our online pharmacy is the perfect resource for people to get their drugs without any hassles or awkwardness. We work hard to make sure you save money every time you shop with us. At our online store, you pay less and get more.

    To make sure we keep offering you great values, we regularly check prices on our top-selling items at chain drugstores. In addition, we scour the Internet to find bargains offered by other companies – and usually match or beat their promotional offers.

    Shop now! pharma37.com

  11.   Somman Says:

    It would be nice if you added pictures into the story.

  12.   Saeko Says:

    Fine!
    The Best.

  13.   Ivan Says:

    And my grandpa is a train finatic.
    Glad to see other.

  14.   Mungo Says:

    It’s fine.
    Thanks.

  15.   Robert Says:

    The Best.
    Ok! Beautyful.

  16.   Kole Says:

    It’s fine.
    Ok! Beautyful.

  17.   Oldman Says:

    Looks interesting.
    It is very creative.

  18.   Mungo Says:

    It’s vonderful.
    Moon Freddie.

  19.   Saeko Says:

    Best site!
    I visited your web site.

  20.   Hubert Says:

    Sample design…
    Fine!

  21.   Oldman Says:

    Ok! Best regards!
    Checking in to see if everybody.

  22.   Hubert Says:

    Glad to see other.
    Is cool and to say hello.

  23.   Pink Says:

    Sample design…
    Ok! Master!

  24.   Dopler Says:

    I really enjoyed your page.
    Super!

  25.   Dopler Says:

    Ok! Beautyful.
    Glad to see other.

  26.   Saeko Says:

    Super!
    It is very creative.

  27.   Jim Says:

    Moon Freddie.
    Best site!

  28.   Saeko Says:

    Fine!
    Super!

  29.   Dopler Says:

    It’s fine.
    Ok! Beautyful.

  30.   Cruger Says:

    Fine!
    Super!

  31.   Ivan Says:

    Ok! Beautyful.
    Fabulous Website!

  32.   Dimos Says:

    It’s vonderful.
    Ok! Beautyful.

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image