Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


I need help with Java
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

I need help with Java

lele0108lele0108 Member
edited October 2012 in General

Could a kind soul come online and help me with Java? I have a big java exam tomorrow.

sicong.liu98 is my Skype.

Comments

  • let us know your question? ;-) here mayb?

  • Could you explain classes, objects, and constructors to me?

  • JunJun Member

    class - a construct that is used as a blueprint to create instances of itself
    object - instance of class, has lifespan - created and eventually destroyed

    In short, class is waffle maker and object is waffle
    You need to make waffle maker first and then make as many waffles as you want

  • @lele0108 said: Could you explain classes, objects, and constructors to me?

    Sure, message me on Skype or just post here.

    A class is like a model. It's a definition of something.

    An object is an instance of a class.

    Constructor is a method used to create a new object. You can give it inputs/things that need to be done.

    You can imagine a class is a recipe. An object would then be a dish made from the recipe. A constructor would be what you did to create this recipe. The arguments to the constructor would be ingredients.

  • JunJun Member

    Constructor is a special subroutine called to initialize object

  • PM sent

  • jcalebjcaleb Member
    edited October 2012

    @lele0108 said: Could you explain classes, objects, and constructors to me?

    Classes is like blueprint. A specification of what something have and how they will behave. E.g. Person, Car.

    Classes have 2 main components. data and methods. Data (variables) holds the state of the object. While method defines the behavior.

    Objects are specific instances of Classes. E.g. Jon is an object of type person. My Toyota Innova with plate number XYZ-123 is an object of type Car.

    Objects are created at some particular point in time. A constructor is a special method of what are the things that should be done when creating a particular object.

  • Thanks guys :D

  • are you okay already? if you have more questions, just ask bro

  • I've looking at it, but I'll pm me if I need anything else.

    LET is awesome :)

  • @lele0108 said: I'll pm me

    *you ;)

    PS: I don't know any java :D

    Thanked by 1jcaleb
  • @lele0108 said: LET is awesome :)

    its a family!

  • @lele0108 What kind of exam is it? Java's great!

  • sorry but this is spoon feeding. his questions are probably chapter 1 of their reference book.

  • @vampireJ said: sorry but this is spoon feeding. his questions are probably chapter 1 of their reference book.

    Actually we're like a month into our java course :|

  • a month into your course and still do not know about these basic stuffs?

    we where probably already coding some stuffs a month into our java course during our time.

  • raindog308raindog308 Administrator, Veteran

    If you have an exam tomorrow on Java and you don't know what objects are, you're beyond help.

  • Sorry to say it @lele0108 but if you're being taught properly, or atleast studying the right material, this far in, you should understand what the fundamentals are.

    In any case; there's plenty of resources online :).

  • jhjh Member

    classes are what you go to to learn Java :D

    Thanked by 3Infinity eastonch tux
  • @raindog308 @eastonch

    Our teacher sucks, he assumes you know a lot of the things, and just speeds along. I spent around 3 hours reading through java online yesterday, so I figured out most of it.

  • raindog308raindog308 Administrator, Veteran

    This book is good and free:

    http://mindview.net/Books/TIJ/

    My only complaint with it is that it's entirely language-oriented. In these major languages (Java, C#, etc.), in reality you spend more time learning how the big libraries work than the language, but if you're starting from scratch, TIJ is good.

    Thanked by 1lele0108
  • @lele0108 said: Could you explain classes, objects, and constructors to me?

    Day before java exam, good luck :=

  • tuxtux Member

    If you understand Finnish, you can look this site.

Sign In or Register to comment.