What is the outcome of the line of code "cout<<abs(-
16.5);"?
1) 16
2) 17
3) 16.5
Answer Posted / shankar
None of them
Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
explain sub-type and sub class? atleast u have differ it into 4 points?
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 are the 5 oop principles?
What is constructor in oop?
What is encapsulation and abstraction? How are they implemented in C++?
What type of loop is a for loop?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
How do you achieve polymorphism?
What is use of overloading?
what is graphics
What is the difference between static polymorphism and dynamic polymorphism?
What is variable example?
What do you mean by variable?
Why is oop useful?
What are the advantages of polymorphism?