What is the use of the this pointer?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
• It points to the calling object and is used to resolve scope issues, especially with member functions
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
• It points to the calling object and is used to resolve scope issues, especially with member functions.
| Is This Answer Correct ? | 0 Yes | 0 No |
• It points to the calling object and is used to resolve scope issues, especially with member functions.
| Is This Answer Correct ? | 0 Yes | 0 No |
Define pure virtual function?
What is function overriding?
What are the advantages of c++ over c?
What do you mean by persistent and non persistent objects?
Explain the different access specifiers for the class member in c++.
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
What is the difference between a reference and a pointer?
What are inline functions? What is the syntax for defining an inline function?
What is singleton pattern in c++?
What is class and structure in c++?
Badboy is defined who has ALL the following properties: 1. Does not have a girlfriend and is not married. 2. He is not more than 23 years old. 3. The middle name should be "Singh" 4. The last name should have more than 4 characters. 5. The character 'a' should appear in the last name at least two times. 6. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02