Results 1 to 5 of 5

Thread: Difference among concrete class and abstract class

  1. #1
    Join Date
    Nov 2009
    Posts
    1,118

    Difference among concrete class and abstract class

    Hi All,

    I am studying the object oriented programming. I am not able to understand the concrete class and abstract class concept.

    What is the difference among concrete class and abstract class? Is there any syntax changes?

    Please help me to solve confusion regarding.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: Difference among concrete class and abstract class

    Hi,

    Abstract class:

    A class which defined with "Abstract" keyword is referred as "Abstract class ".The Abstract class is must be a base class.It can comprises normal as well as abstract methods.

    Example:
    public abstract class DemoClass
    {
    public void DemoMethod()
    {..............
    }

    public abstract DemoMethod()
    {
    .........
    }
    }

    Concrete class:

    Concrete class is used as base class. Concrete class doesn't contains abstract methods, you can create methods in it.

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Difference among concrete class and abstract class

    Hi friend,

    *. Class which is useful in the object creation is called as "Concrete Class"
    While a class which is not useful in the object creation is called as "Abstract Class".

    *. Abstract class doesn't contains instances for direction . The derives class is must be a Concrete Class.

    *. Abstract class must contains at least single abstract method. There is no method to create a objects for the abstract class.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: Difference among concrete class and abstract class

    Hi,

    Please review carefully the below example, which explain the declaration as well as the implementation of the "abtract class" and "abstract methods":

    public abstract class Vh
    {

    public abstract void goHill();
    private String t;

    public String getType()
    {

    return t;
    }
    }

    public abstract class Cr extends Vh {
    public abstract void goHill();
    public void CrThings() {

    }
    }
    public class Mn extends Cr {
    public void goHill() {

    }
    }

  5. #5
    evvahmae Guest

    Re: Difference among concrete class and abstract class

    Hi Everyone!
    Im new here in this site!
    Ok Thanks for that info.
    Keep the good work!
    I hope I can have more friends and fun here!
    Keep on posting Guys!
    Thanks!...
    Good Luck to all!...

Similar Threads

  1. What is the difference between Local class and global class in C++?
    By Dëfrim in forum Software Development
    Replies: 4
    Last Post: 03-01-2011, 10:44 PM
  2. Debug class and Trace class Difference
    By Amaresh in forum Software Development
    Replies: 5
    Last Post: 22-01-2010, 10:00 AM
  3. Abstract class in Java
    By SoftWore in forum Software Development
    Replies: 3
    Last Post: 07-11-2009, 01:58 PM
  4. Abstract class and Interface in .net
    By RogerFielden in forum Software Development
    Replies: 3
    Last Post: 04-05-2009, 06:07 PM
  5. Replies: 4
    Last Post: 02-03-2009, 08:46 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,998,916.01629 seconds with 17 queries