Answer Posted / kaush
when one one class(derived class) inherit from more than one
class(base class) then it is called multiple inheritance.
like as,,
class program
{
class a
{
}
class b
{
}
class c:a,b
{
}
}
but in c# multiple inheritance not allowed.
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are oops functions?
Which language is not a true object oriented programming language?
#include
What is the real time example of inheritance?
What is overloading and its types?
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 the difference between procedural programming and oops?
Why multiple inheritance is not possible?
when to use 'mutable' keyword and when to use 'const cast' in c++
What are oops methods?
Why do we use oop?
Why do we use polymorphism in oops?
What is oops with example?
How do you answer polymorphism?
what is the sylabus for priliminaries?