Get the latest Education e-news
 
Old 06-03-2013, 10:44 PM   #1
jacobpitt
Junior Member

Activity Longevity
0/20 4/20
Today Posts
0/11 ssssssss7
Default Abstract Class

What is the Abstract Class in C++? And write any program of abstract class for example?
jacobpitt is offline   Reply With Quote
Old 06-04-2013, 01:46 AM   #2
Protector one
Moderator

Activity Longevity
2/20 17/20
Today Posts
1/11 ssssss698
Location: Netherlands
Default Re: Abstract Class

Is your Google broken? Here, check Wikipedia: http://en.wikipedia.org/wiki/Abstract_type.
I agree that it can be a bit confusing when you just start out with C++ or a similar language what abstract, inheritance and all that, is about. Are you doing a course or reading a book about C++?
__________________
My name is Louis. Hi!
Uh oh! The princess is in another signature!
Protector one is offline   Reply With Quote
Old 06-04-2013, 07:19 AM   #3
Brice
Junior Member

Activity Longevity
0/20 14/20
Today Posts
0/11 sssssss15
Location: California, USA
Default Re: Abstract Class

An abstract class is a class that can give its properties to other objects, but you can't make an instance of the class itself. So for example you might have an abstract class "vehicle" that has wheels and an engine, but you don't make instances of it. Instead you make other classes like "car", "van", or "tank" and make instances of THOSE.

Here is a clearer example than wikipedia: http://login2win.blogspot.com/2008/0...ase-class.html

And another: http://easycplusplus.com/cpp/cpptutorial33b.html

Best of luck!
Brice is offline   Reply With Quote
Old 06-07-2013, 01:59 AM   #4
jacobpitt
Junior Member

Activity Longevity
0/20 4/20
Today Posts
0/11 ssssssss7
Default Re: Abstract Class

Thanks to both Protector one and Brice for your suggestion.
jacobpitt is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Powered by vBulletin® Version 3.6.9
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
All times are GMT -8. The time now is 11:44 PM.






UBM Tech