![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions Latest Answer : In C++, assignment and copy construction are different because the copy constructor initializes uninitialized memory, whereas assignment starts with an existing initialized object. If your class contains instances of other classes as data members, the ... Latest Answer : In C++, variable declared as static it is shared by all the objects of the class. It can be accessed only by a static function. ... Latest Answer : Yes . e.g. scanf ("%10s", str ); only 10 chars would be taken in ... Which header file should you include if you are to develop a function which can accept variable number of arguments? Can there be at least some solution to determine the number of arguments passed to a variable argument list function? Latest Answer : A constructor is executed when an object of a class is getting initialized (constructed) ... What is the difference between function pointer and pointer to function?why we use static variable as a global instead of defining it a local? Read Answers (2) | Asked by : vimal gupta Tags : Pointer Can we call constructor of superclass directly without using super()method in subclass? if yes,explain,if no,why? How could I, in C++ declare a class point. The class point has two private data members x and y of type float. The class point has a parameterized constructor to initialize both the data members i.e. x and y. The class point has a member function display() that display the value of x and y. Create two objects p1 and p2 with your desired data and display the values of x and y of p1 and p2. Now create a third object p3 by using the expression p3=p1+p2 and display the values of x and y of p3. Read Answers (1) | Asked by : attique Latest Answer : The answer is when instantiating an object compiler needs a correct object type. If the constructor is declared virtual then the the object type can not be resolved at compile time, and that's why it is not possible to declare a constructor as virtual. ... Read Answers (4) | Asked by : gaurav
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||