Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
when a class is defined the compiler will not allocate memory.
This is true only for data member not for member function. As soon as the member function is defined the required memory for that member function is allocated. The memory for data member (variable) is allocated only when the object is constructed from the class.
class item
{ int number; float cost; public:
void getdata(int a, float b);
void putdata(void);
};
In the class item the memory is allocated for getdata and putdata member functions.
Memory is not allocated for number and cost data members.
item p; Now the memory is allocated for data member number and cost. The memory is allocated for each instances of object.
item p,q,r,s; The memory is allocated for data members of object p,q,r,and s separately for the member function only one memory location which is allocated in the definition.
b) Why copy constructor accepts reference to an object and not the object itself? What happens if we do otherwise?
Friend function in c++: class miles; class km { float value; public : // void input(); km convert(km ,int a ) ; void output() {
Environment - C, Linux Duration - December 2006 to Feb 2007 Description - TR-106 specifies a generic data model template applicable for all TR-069 enabled devices. Adde
creating a system having five process from p0 to p4 and five resource types. create the need matrix use the safe algorithm to test if the system is in safe mode.
Program is to find the area of room: Program is to find the area of room with default values using classes & object class room { private: int len; i
Question: (a) (i) What is recursion? (ii) What advantage is there in its use? (iii) What disadvantage is there in its use? (b) The factorial of a positive number can b
Problem : Change to palindrome A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your ta
Program of file data: FileData::FileData( ffblk& blk ) : fileName( blk.ff_name ), fileDate( (blk.ff_fdate >> 5) & 0x000F, blk.ff_fdate & 0x0001F
External Variables Different functions of the similar program can be written in different source files and can be compiled together. The scope of a global variable is not limit
C program to string compression: Write a program to define a sting and all operations on string. void main() {
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd