Answer Posted / mohit k kanani
Hierarchical Inheritance
class kar (base class)
{
}
class moh:public kar (derive class of kar and base class of
leo class)
{
}
class rip:public kar (derive class of kar and base class of
leo class
{
}
class leo:public moh,public rip (derive class of moh class
& rip class)
{
}
| Is This Answer Correct ? | 23 Yes | 8 No |
Post New Answer View All Answers
What is the real time example of encapsulation?
What is the important feature of inheritance?
What is polymorphism and example?
hi all..i want to know oops concepts clearly can any1 explain??
What is an example of genetic polymorphism?
What is byval and byref? What are differences between them?
What is destructor example?
What is encapsulation in ict?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
when to use 'mutable' keyword and when to use 'const cast' in c++
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?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
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?
What is overloading in oop?