Re: About pure virtual function
- From: Lorry Astra <LorryAstra@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 17 Apr 2008 21:44:00 -0700
Thanks.
I've learned all of the answers, I think maybe I misunderstand the concept
of pure virtual function and abstract class when some classed inheritate
from it. What I understand is: If a new class(common class, not abstract one)
inheritates from an abstract class, it must define all of the pure virtual
functions, if not, then this new class has an error and we can justify this
error not until we define an object of this new class.
And what I can get the view of c++ compiler is : if a new class inheritates
from an abstract class, new class doesn't need to define all of the pure
virtual functions, that's no problem, but you can't define an object of this
new class, if you define one, you are wrong.
Is that right?
.
- Follow-Ups:
- Re: About pure virtual function
- From: Ben Voigt [C++ MVP]
- Re: About pure virtual function
- From: adebaene
- Re: About pure virtual function
- References:
- About pure virtual function
- From: Lorry Astra
- Re: About pure virtual function
- From: Ulrich Eckhardt
- Re: About pure virtual function
- From: Duane Hebert
- Re: About pure virtual function
- From: skidmarks
- Re: About pure virtual function
- From: Ben Voigt [C++ MVP]
- Re: About pure virtual function
- From: Lorry Astra
- Re: About pure virtual function
- From: Igor Tandetnik
- About pure virtual function
- Prev by Date: Re: Array of char pointers.
- Next by Date: array variable subscript generate wrong code (2008) ?
- Previous by thread: Re: About pure virtual function
- Next by thread: Re: About pure virtual function
- Index(es):
Relevant Pages
|