what is costructor?
Answer / dipraj shahane
Constructor is special member function of class which having
same name as Class name and no return type. Main function of
Constructor is to initialize (give default values to member
variable of class object) object. Constructor gets invoke
when you create new object by following syntax.
ClassName objectName = new ClassName();
| Is This Answer Correct ? | 22 Yes | 0 No |
wht is major diff b/w c and c++?
What are generic functions and generic classes?
can you give the dynamic polymorphism types?
Where You Can Use Interface in your Project
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
What is constructor overloading in oop?
What is encapsulation?
Write pseudo code for push in a stack?
Why do we use inheritance?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
Can we create object of abstract class?
When is it necessary to use member-wise initialization list in C++?