Sponsored Links


Results 1 to 2 of 2

Thread: what is difference between object data type and Permitive data type in c++ 2011

  1. #1
    Senior Member saneha's Avatar
    Join Date
    Apr 2011
    Posts
    266

    14 what is difference between object data type and Permitive data type in c++ 2011

    Sponsored Links1



  2. #2
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578
    Object variables are stored as 32-bit (4-byte) addresses that refer to objects. You can assign any reference type (string, array, class, or interface) to a variable declared as an Object.

    An Object variable can also refer to data of any value type (numeric, Boolean, Char, Date, object, the invocation of a method of an instance using an Object variable is always structure, or enumeration).

    Although a variable declared with Object type is flexible enough to contain a reference to any late (run-time) binding. To force early (compile-time) binding, assign the object reference to a variable declared with a specific class name or cast to the specific data type.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Abstract data type (ADT) in C++ 2012
    By Vuhelper in forum C++ Programing
    Replies: 0
    Last Post: 01-04-2012, 09:34 PM
  2. Replies: 0
    Last Post: 07-20-2011, 10:49 PM
  3. Replies: 0
    Last Post: 05-12-2011, 09:00 PM
  4. What data type will be used in C++ program?
    By sana.pari in forum C++ Programing
    Replies: 1
    Last Post: 04-24-2011, 06:07 PM
  5. char data type in c and C++
    By sana.pari in forum C++ Programing
    Replies: 1
    Last Post: 04-24-2011, 05:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft