Click here to Skip to main content
15,909,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help with Inheritance Pin
S. Senthil Kumar17-May-05 23:06
S. Senthil Kumar17-May-05 23:06 
GeneralRe: Help with Inheritance Pin
ThatsAlok17-May-05 23:47
ThatsAlok17-May-05 23:47 
GeneralRe: Help with Inheritance Pin
David Crow18-May-05 2:22
David Crow18-May-05 2:22 
GeneralRe: Help with Inheritance Pin
S. Senthil Kumar18-May-05 5:38
S. Senthil Kumar18-May-05 5:38 
GeneralRe: Help with Inheritance Pin
David Crow18-May-05 6:01
David Crow18-May-05 6:01 
GeneralRe: Help with Inheritance Pin
S. Senthil Kumar18-May-05 6:08
S. Senthil Kumar18-May-05 6:08 
GeneralRe: Help with Inheritance Pin
David Crow18-May-05 8:04
David Crow18-May-05 8:04 
GeneralRe: Help with Inheritance Pin
S. Senthil Kumar18-May-05 20:25
S. Senthil Kumar18-May-05 20:25 
You said "Sure it is. A Yacht is a Boat, and a Benz is a Car, and they are all Vehicles. However, until one of those objects actually exist, there are no instances".

Going by that logic, why not derive whirlybird from Helicopter? whirlybird is a helicopter, after all. Then DavidCrow, SenthilKumar, instead of being instances of Humans, would be subclasses of Humans...


DavidCrow wrote:
By definition, an instance of class is the actual occurrence of that class.

I agree and that's why I don't think Benz should be derived from Car.

Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
GeneralRe: Help with Inheritance Pin
ThatsAlok17-May-05 23:13
ThatsAlok17-May-05 23:13 
GeneralThanks Pin
bhangie18-May-05 0:08
bhangie18-May-05 0:08 
Generalbulid error Pin
Usman Arif17-May-05 21:30
Usman Arif17-May-05 21:30 
GeneralSerial Port Monitor Pin
sallypeh17-May-05 20:45
sallypeh17-May-05 20:45 
GeneralRe: Serial Port Monitor Pin
Joel Holdsworth17-May-05 22:58
Joel Holdsworth17-May-05 22:58 
GeneralRe: Serial Port Monitor Pin
sallypeh17-May-05 23:12
sallypeh17-May-05 23:12 
GeneralRe: Serial Port Monitor Pin
Adi Narayana Vemuru17-May-05 23:50
Adi Narayana Vemuru17-May-05 23:50 
GeneralC++ problem.. Pin
Anonymous17-May-05 20:24
Anonymous17-May-05 20:24 
GeneralRe: C++ problem.. Pin
Jack Puppy17-May-05 20:45
Jack Puppy17-May-05 20:45 
GeneralRe: C++ problem.. Pin
toxcct18-May-05 0:16
toxcct18-May-05 0:16 
GeneralRe: C++ problem.. Pin
Bob Flynn18-May-05 1:56
Bob Flynn18-May-05 1:56 
GeneralSoftware Pin
Anonymous17-May-05 19:22
Anonymous17-May-05 19:22 
GeneralRe: Software Pin
Christian Graus17-May-05 19:26
protectorChristian Graus17-May-05 19:26 
GeneralRe: Software Pin
Bob Stanneveld18-May-05 2:36
Bob Stanneveld18-May-05 2:36 
GeneralRe: Software Pin
Anonymous18-May-05 9:12
Anonymous18-May-05 9:12 
GeneralFragmented Disk Pin
Anonymous17-May-05 19:08
Anonymous17-May-05 19:08 
GeneralRe: Fragmented Disk Pin
Joel Holdsworth17-May-05 23:49
Joel Holdsworth17-May-05 23:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.