php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
in abstract classes where abject donot extensiate,why we make concrete classes in it?
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1
in abstract classes where abject donot extensiate,why we make concrete classes in it?
Reply
#2
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.

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  protected inheritance and abstract classes in C++ 2012 Vuhelper 0 1,765 01-14-2012, 05:48 PM
Last Post: Vuhelper
  Abstract data type (ADT) in C++ 2012 Vuhelper 0 7,146 01-04-2012, 10:34 PM
Last Post: Vuhelper
  how to make .h file in c++ Vuhelper 0 3,656 11-05-2011, 05:20 PM
Last Post: Vuhelper
  classes use in c++ May 2011 Vuhelper 1 1,964 05-29-2011, 07:30 PM
Last Post: Xpert
  Is it possible to make data type array which act as java Class Object in dev c++ 2011 Xpert 0 2,598 05-12-2011, 09:00 PM
Last Post: Xpert
  What is the purpose of using classes if we have the structure saneha 1 3,220 05-02-2011, 06:28 AM
Last Post: Vuhelper
  what is meant by concrete class in c++ 2011? saneha 1 3,898 05-02-2011, 06:25 AM
Last Post: Vuhelper
  what is the difference between abstract class and concerete class in c++ 2011 saneha 1 2,417 05-02-2011, 06:21 AM
Last Post: Vuhelper
  What are Concrete Classes in c++ 2011? saneha 1 2,438 04-29-2011, 07:47 AM
Last Post: Vuhelper
  What does hierarchy mean in concerned with Classes ? saneha 1 2,706 04-29-2011, 07:45 AM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support