Welcome to the VirtuQ Forums.
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Feb 2012
    Location
    Noida, India
    Posts
    89

    Scope Resolution Operator

    Hello Sir,

    Is it necessary to define a function of a particular class outside it with the help of scope resolution operator. We can't define it inside the class and then call it with the help of an object. Why we use Scope resolution operator for making the code tough?

    Thanks,

  2. #2
    VirtuQ™ Moderator
    Join Date
    Jul 2011
    Location
    Bangalore, India
    Posts
    1,044
    Blog Entries
    2
    Anon10038,

    If you do not do that, you will need to put all your code in header files which is a bad idea due to several reasons. Your compilation times will increase to name a few.

    Thanks,

    Anup


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •