Answer Posted / xyz
this code snippet will swap the value of i and j
This code works same as
i=i+j;
j=i-j;
i=i-j;
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
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 encapsulation in simple terms?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< just right the logic of it
1--> If few people are electing then every time ur candidate
should win
2--> arrange books in box, if box carry weight == books
weight then take another box..... find the no of box
required. What is the real time example of encapsulation? Why do we use inheritance? How do you use inheritance in unity? 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?
Can you explain polymorphism? What is oops?what is its use in software engineering? What is coupling in oop? What is encapsulation example? How do you define a class in oop? What are the three parts of a simple empty class? hi all..i want to know oops concepts clearly can any1
explain??