Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 22nd, 2005, 1:01 PM   #1
-=PARADOX=-
Programmer
 
-=PARADOX=-'s Avatar
 
Join Date: Oct 2005
Location: Portugal
Posts: 53
Rep Power: 3 -=PARADOX=- is on a distinguished road
Abstract class

Hi there

Can someone tell me what a abstract class is? ... and a pure abstract class?

Thanks in advance
-=PARADOX=- is offline   Reply With Quote
Old Nov 22nd, 2005, 1:04 PM   #2
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
lol O_o, i would like to know too
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old Nov 22nd, 2005, 1:14 PM   #3
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 8 Ooble is on a distinguished road
You guys already know Google is your best friend. Now you need to learn Programmer rule #2: Wikipedia is your second-best.

http://en.wikipedia.org/wiki/Class_(...ncrete_classes
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Nov 22nd, 2005, 1:22 PM   #4
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
why thank you Ooble! Btw: google is going to the crapper! I wouldn't advise anyone use it O_o http://www.searchlores.org <- that website offers the power to find anything (picture,file,song) anywhere on the net... at anytime!!! it warns you of the power that site has to offer.. check it out?
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old Nov 22nd, 2005, 1:28 PM   #5
-=PARADOX=-
Programmer
 
-=PARADOX=-'s Avatar
 
Join Date: Oct 2005
Location: Portugal
Posts: 53
Rep Power: 3 -=PARADOX=- is on a distinguished road
Thanks for the advise
-=PARADOX=- is offline   Reply With Quote
Old Nov 22nd, 2005, 1:38 PM   #6
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 8 Ooble is on a distinguished road
Can you explain exactly how that one's better than Google?
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Nov 22nd, 2005, 1:42 PM   #7
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
searchlores.. is not an engine itself! It is a Fravia site(you might have heard of him?) that contains GOBS of information about engines, and methods of find anything and everything you want! Trust me once you get in there and start reading, good luck stopping!


EDIT: btw, there are hidden things everywhere!!
on the first page the words - > Bk:flange of myth ~ What's new
is 18 different links!!!
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old Nov 22nd, 2005, 2:28 PM   #8
-=PARADOX=-
Programmer
 
-=PARADOX=-'s Avatar
 
Join Date: Oct 2005
Location: Portugal
Posts: 53
Rep Power: 3 -=PARADOX=- is on a distinguished road
So I have one base pure abstract class named 'CFigura.h':

class CFigura
{

protected:
        static unsigned count;
        virtual ~CFigura()=0;
public:
        virtual double Area()=0;
        virtual double Perimetro()=0;
};

and one child class 'CCirculo.h':

#include "CFigura.h"

class CCirculo : public CFigura
{
        static const double PI;
        unsigned raio;
public:
        CCirculo( unsigned );
        virtual ~CCirculo();
        double Area();
        double Perimetro();
};

when I try to compile it says:
"Unresolved external CFigura::~CFigura referenced from CCirculo"

What's wrong?
-=PARADOX=- is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:26 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC