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 4 of 4

Thread: Abstract class question

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

    Default Abstract class question

    do we have constructor in abstract class?
    If we have then what is the use of it?


  2. #2
    Senior Member
    Join Date
    Jul 2013
    Location
    Europe
    Posts
    567
    Thanks
    0
    Thanked 103 Times in 88 Posts

    Default Re: Abstract class question

    Yes you can define constructors for abstract classes.
    These constructors can be used by classes that extend the abstract class.

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,055
    My Mood
    Mellow
    Thanks
    184
    Thanked 651 Times in 638 Posts

    Default Re: Abstract class question

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

    Here's the Oracle page on Abstract Class.

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

    Default Re: Abstract class question

    Cornix
    Thanks for the information......

    one more question when classdefinition not found exception will occur?

    can you please tell me some realtime example that happens on project...

Similar Threads

  1. [SOLVED] Abstract method in a non-abstract class
    By bassie in forum What's Wrong With My Code?
    Replies: 2
    Last Post: December 2nd, 2012, 10:27 AM
  2. What's difference between public class and abstract class?
    By Java95 in forum Java Theory & Questions
    Replies: 7
    Last Post: January 24th, 2012, 06:37 AM
  3. Abstract class
    By jeskoston in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 26th, 2011, 01:46 PM
  4. noob question on abstract classes
    By joshred in forum Object Oriented Programming
    Replies: 1
    Last Post: September 15th, 2010, 06:27 PM
  5. newbie question about Abstract methods
    By FailMouse in forum Java Theory & Questions
    Replies: 3
    Last Post: August 10th, 2010, 11:51 PM