what is the main difference between c and c++?
Answer Posted / pramit kumar mall
In c++ more security concert is taken by introduction of
>private class
>public class
>protected class
where as in c it was not found
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the two different types of polymorphism?
Why is static class not inherited?
What are the benefits of polymorphism?
What is destructor in oop?
Why is oop useful?
What is overriding in oop?
Can we create object of abstract class?
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 polymorphism and example?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
Explain the advantages of inheritance.
i got a backdoor offer in process global,Bangalore..Can i work with it?
#include
What is abstract class in oops?
what type of questions