|
-
September 21st, 2010, 06:29 AM
#3
Re: Abstract class fundamentals
I understand we can't create objects of abstract class but how is the function "void prs( subt& i )" working. "subt& i" is passing by reference. But still we are passing by reference of an object of "subt" type which is an abstract class.
Cannot see any contradiction. The objects is already created to the moment of referencing it. And passing by reference never implies creation of any sort.
Best regards,
Igor
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|