Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: I'm a beginner and i'm searching for a basic example

  1. #1
    Junior Member
    Join Date
    Jun 2014
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default I'm a beginner and i'm searching for a basic example

    "Write a java program that illustrates: Inheritance, Overriding-Overloading, Polymorphism, Abstraction, Encapsulation, Interfaces with a set of related classes." Do you have any basic example to understand all of them in a program?


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: I'm a beginner and i'm searching for a basic example

    Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.

    Moved to Java Theory and Questions.

  3. The Following User Says Thank You to GregBrannon For This Useful Post:

    mottogo (June 9th, 2014)

  4. #3
    Junior Member
    Join Date
    Jun 2014
    Posts
    16
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default Re: I'm a beginner and i'm searching for a basic example

    Have you tried any of the online tutorials?

    Oracle : Trail: Learning the Java Language (The Java™ Tutorials)
    Tutorialspoint : http://www.tutorial
    Java Beginner: http://www.javabeginner.com/learn-ja...java/index.htm

    Google is your friend. There are many of these tutorial sites to choose from.

  5. #4
    Member Ada Lovelace's Avatar
    Join Date
    May 2014
    Location
    South England UK
    Posts
    414
    My Mood
    Angelic
    Thanks
    27
    Thanked 61 Times in 55 Posts

    Default Re: I'm a beginner and i'm searching for a basic example

    If this is a college assignment - check over what work you have recently done in each aspect
    of the question. It's basically asking you to combine all you have learned to create a single
    project to test your skills in the said areas.

    Create one piece at a time - test it - debug it - test it
    Only when that works for one single part - you can confidently move on to the next part.
    Ask away on the forum of you need help - but remember to post your code too

    Wishes Ada xx
    If to Err is human - then programmers are most human of us all.
    "The Analytical Engine offers a new, a vast, and a powerful language . . .
    for the purposes of mankind
    ."
    Augusta Ada Byron, Lady Lovelace (1851)

  6. #5
    Junior Member
    Join Date
    Jun 2014
    Posts
    22
    My Mood
    Starving
    Thanks
    1
    Thanked 8 Times in 6 Posts

    Default Re: I'm a beginner and i'm searching for a basic example

    Come up with some sort of class you want to use. Maybe an Animal.
    Then try to figure out how you can relate those terms to the program.
    You could have a Fish class that extends the Animal class. (inheritance)
    Have the Fish class override a breathe method in Animal.(overriding/polymorphism)

    and so on....

    basically I think it might help to come up with an idea first then see how you can apply these terms.

    Then once you have more of an idea what you are doing you can ask more specific questions and get more useful answers.

Similar Threads

  1. Replies: 10
    Last Post: December 22nd, 2013, 07:36 PM
  2. Problem with basic calculator - Beginner
    By Dream Hacked in forum What's Wrong With My Code?
    Replies: 3
    Last Post: July 25th, 2013, 11:00 PM
  3. Searching
    By killer3p0 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: May 17th, 2012, 08:06 AM
  4. Basic Beginner Help
    By SRD in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 11th, 2010, 04:27 PM
  5. Searching Data
    By kalees in forum JavaServer Pages: JSP & JSTL
    Replies: 3
    Last Post: October 2nd, 2009, 03:23 AM

Tags for this Thread