Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > ABC inheriting from ABC

Reply
Thread Tools

ABC inheriting from ABC

 
 
vsgdp
Guest
Posts: n/a
 
      09-24-2005
Can you do this:

class A // abstract
{
public:
virtual void f() = 0;
virtual void g() = 0;
virtual void h() = 0;
};

class B : public A // still abstract, but implemented some of the methods
{
public:
virtual void f() = 0;
virtual void g() {...};
virtual void h() {...};
};

class C : public B
{
public:
void f() { ... }
};




 
Reply With Quote
 
 
 
 
vsgdp
Guest
Posts: n/a
 
      09-24-2005
nevermind, the problem was something else.


 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
x.abc vs x['abc'] Gunter Henriksen Python 1 05-15-2009 07:03 AM
Ain't ($foo eq 'abc') the same as ($foo =~ /^abc$/)? Ha - NOT ON MY BOX!!! usenet@DavidFilmer.com Perl Misc 4 06-15-2005 03:06 PM
Special character to &abc equivalents Colin Peters ASP .Net 8 05-09-2005 01:45 AM
Is "String s = "abc";" equal to "String s = new String("abc");"? Bruce Sam Java 15 11-19-2004 06:03 PM
HttpModule -- how to intercept urls like http://localhost/abc/def or http://localhost/abc/def/ where abc, def are non virtual dir Jiong Feng ASP .Net 0 11-19-2003 05:29 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57