Sponsored Links


Results 1 to 2 of 2

Thread: in abstract classes where abject donot extensiate,why we make concrete classes in it?

  1. #1
    Senior Member saneha's Avatar
    Join Date
    Apr 2011
    Posts
    266

    Icon6 in abstract classes where abject donot extensiate,why we make concrete classes in it?

    Sponsored Links1



  2. #2
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578
    I think you are familiar with the concept of Abstract class and Concrete class. As you know very well its OOP who thinks every thing in terms of objects and defines relationship as we see and think in the real world.
    Lets explain your question with an example, Shape and Triangle are two classes, as it is seen in the real world that Triangle is a kind of shape........ So, we declare in OOP Shape as a base class and Triangle as derived. Secondly, it is also in your observation that shape itself is an abstract concept rather than a physical thing like Triangle, Square etc. So, this real world concept should be implemented while in coding. This can be implemented by using the concept of Abstract and Concrete class. Shape can be placed as an Abstract class and Triangle is its concrete class( derived also).
    However, the main purpose to declare and implement all these is to minimize complexity and map the real world concepts with OOP concepts.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. protected inheritance and abstract classes in C++ 2012
    By Vuhelper in forum C++ Programing
    Replies: 0
    Last Post: 01-14-2012, 05:48 PM
  2. classes use in c++ May 2011
    By Vuhelper in forum C++ Programing
    Replies: 1
    Last Post: 05-29-2011, 07:30 PM
  3. What are Concrete Classes in c++ 2011?
    By saneha in forum C++ Programing
    Replies: 1
    Last Post: 04-29-2011, 07:47 AM
  4. What does hierarchy mean in concerned with Classes ?
    By saneha in forum C++ Programing
    Replies: 1
    Last Post: 04-29-2011, 07:45 AM
  5. Abstract classes vs. Interfaces in java
    By saneha in forum Java forum
    Replies: 1
    Last Post: 04-24-2011, 09:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft | Jobs