Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Beginning Classes in Java: Part 1

Loading...

Sign in or sign up now!
34,378
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 7, 2008

Very Simple Java Class and Object use. http://www.robkeplin.com/blog/view/Java/Beginning+Classes+in+Java/ for more information.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (shlumph)

  • Why does the name of a class need the first letter to ba always capital? Is there a specific reason or is it just an arbitrary rule that the creators of jave decide to put in?

  • @tharwpoop Not sure of the exact reason, but in some OS's file names are case sensitive, while others are not. Since the class name and the file name need to be the same, this could cause some problems in portability.

    But then again, ThisObject() and Thisobject() are both valid. The decision was probably made due to popular naming conventions.

  • What Java Jargon don't you know? Of course, you need to learn to walk before you can run :D

  • hey, why do we need constructors?

    aren't they by default from Object?

  • Constructors help initialize fields of the object

Top Comments

  • java makes me wanna jump off a cliff

  • @chrysillo C++ is so much better!

see all

All Comments (24)

Sign In or Sign Up now to post a comment!
  • @tharwpoop correction: names do not need to be capital its encouraged to be lowercase not capitalized but it won't matter

    

  • @tharwpoop....By convention, programmers using Java begin their class names with an uppercase letter. Thus, the class that defines the attributes and methods of a person would probably be named Person, and the class for lets say a dog would probably be named Dog. However, following this convention is not required to produce a workable program. Hope this helps!

  • how can i download this video? i found this more useful than my teacher's lecture and i've been killing myself for the past 2 days trying to figure this out by reading 3 diff books that explain it differently, thumbs up if you are a visual and hand's on lerner..

  • @tharwpoop i think its simply to distinguish between variables and structs or objects/classes, its a programming standard that helps in maintenance.

  • I'm 12 and i understood this :D

  • wat does "public string", "public int" and "public Person" mean??? i mean, give specific meanings of those...

  • My screen is not empty even at the beginning, it has some codes, some files at the left screen which I can't delete. IDE is somehow non linear and confusing. If I want to rename the classduring typing, I can't do it.

    How to write a code that will subtract two numbers?

  • @Dillboy928dfb ye and much easier

  • This makes javascript seem so easy.

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more