Re: [algogeeks] Benefits of using Private or Protected Virtual Functions ?

2011-08-23 Thread sachin sabbarwal
i can't come up with benefits... but a potential use is here class c1 { private: c1() { } public: static c1* makeobject(accept credentials) { //check for privileges //if requester is privileged then make an object.(check credentials) //make an object by calling constructor

Re: [algogeeks] Benefits of using Private or Protected Virtual Functions ?

2011-08-23 Thread sarvesh saran
http://www.parashift.com/c++-faq-lite/strange-inheritance.html#faq-23.4 Also read these two links..they are very informative and a must read for people understanding virtualism. http://www.gotw.ca/publications/mill18.htm http://drdobbs.com/cpp/184403760 -sarvesh On Tue, Aug 23, 2011 at 4:11

Re: [algogeeks] Benefits of using Private or Protected Virtual Functions ?

2011-08-23 Thread Sanjay Rajpal
I think they can be useful in singlton classes. Sanju :) On Tue, Aug 23, 2011 at 3:32 AM, sachin sabbarwal algowithsac...@gmail.comwrote: i can't come up with benefits... but a potential use is here class c1 { private: c1() { } public: static c1*

[algogeeks] Benefits of using Private or Protected Virtual Functions ?

2011-08-21 Thread Decipher
-- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/TSCBDch6GdYJ. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this