1. #1
    Unregistered

    Which was replaced in Java programming language instead of Multiple Inheritance?

    which was replaced in java instead of multiple inheritance? some body are telling interfaces and multithreading which one is correct and give me reason?





  2. Related:
  3. #2
    reshma m.v
    Join Date
    Sep 2012
    Posts
    101

    Re: Which was replaced in Java programming language instead of Multiple Inheritance?

    actually java directly not supporting multiple inheritance as c and c++ do.for implementing multiple inheritance java uses interfaces.interfaces is using as an intermediate for implementing multiple inheritance.we can include more than one interface in a program.interfaces can be extended within them but an interface can only be implement to a class by using the keyword"implements".2 class can implement one interface.that 2 classes have connection with the interface.but that 2 classes are not connected each other.they are absolutely independant of each other.in simple words his is the consept behind interfaces.
    whereas multithreading is a quet different consept.multithreading is the consept which is using in java for doing multiple works at the same instance with the help of threads.threads are the simple dispatchable unit of code.
    multithreading do not have any connection with multiple inheritance




+ Reply to Thread

Quick Reply Any Question?