www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Abstract class creation

↑ ↓ ← Dimitri Kaparis <dkaparis universalstudyhelper.com> writes:
With Digital Mars version 8.38.9n:

class A
{
	virtual void m1()=0;
};

int main()
{
	A();
}

Creation of abstract classes is allowed as temporaries.

Regards,
Dimitri
Apr 26 2004
↑ ↓ → "Jackson" <fangzhengzhu kingsoft.com> writes:
But visual C++ won't let it pass, the pure virtual function is not
defined...
"Dimitri Kaparis" <dkaparis universalstudyhelper.com>
??????:c6ii59$26s2$1 digitaldaemon.com...
 With Digital Mars version 8.38.9n:

 class A
 {
 virtual void m1()=0;
 };

 int main()
 {
 A();
 }

 Creation of abstract classes is allowed as temporaries.

 Regards,
 Dimitri

Aug 30 2004