answersLogoWhite

0


Best Answer

Multiple Interfaces are usually associated with name ambiguity and this is the reason that they haven't been implemented in .NET. However in order to incorporate the advantages of multiple inheritance keeping aside the issues involved, .NET has come up with one more concept known as INTERFACE.

Interfaces allow a class to inheirt behavioral characteristics frm more than one object type called interfaces. Classes implement the interfaces. You can check out the associated links for a number of examples demonstrating above concept.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

Inheritance is achieved in Java through the use of the extends keyword. For example:

class A {

// some code

}

class B extends A {

//some code

}

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How to write a code for a program that uses inheritance?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a use inheritance?

Code Re-use is one of the biggest uses of Inheritance


HTML code has a limit of 10 webpages per site?

No! HTML is simply code. You can write 1 million pages of HTML code if you want. HTML is not a program. Its code. Now you may have a program that uses HTML code and that program has limitations. But not HTML itself.


What language do Rabbit 2000 microprocessor program uses?

Machine code.


What programming language uses a set of grammar and rules that specifies how to write instructions?

Every programming language has rules that specify how to write instructions. Many programming languages are similar, but mostly they all have different styles and ways of writing the same instructions. This is called the syntax.


What do you mean programming language?

A programming language is a symbolic language that a computer programmer uses to write computer program source code. Source code is non-executable code and must be translated into machine code. A computer can be programmed to perform this conversion and thus produce the required machine code.


What do you mean by programming language?

A programming language is a symbolic language that a computer programmer uses to write computer program source code. Source code is non-executable code and must be translated into machine code. A computer can be programmed to perform this conversion and thus produce the required machine code.


A computer program has been written to break a code the code uses the letters A-G with each letter being used only once If the program can try 1 unique code every second what is the maximum number?

7!


How do you write a program using 57252077?

Please be more explicit, 57252077 is a bit of a mystery. Do you want a program that uses the number 57252077 in some way?


Write a program that uses a for statement to calculate and print the product of the odd integers from 1 to 15?

Code example:#include int main(void) { int iOddNum = 0; int iSum = 0; for(iOddNum = 1; iOddNum


What is browser program?

A browser is simply a program (software) in which one uses to access the internet (Takes code like html and converts it to an image text etc...)


How can I write a program to display prime numbers from 1 to 100?

Write a function that implements an algorithm that checks to see if a particular integer is prime (returning a boolean). Write a program that uses that function on each number from 1 to 100, and if true, displays that number.


Write a C program to implement excelp system call?

You are not able to do that, but you can write a program, that uses the system-call./* exectest.c */#include int main (void){execlp ("/bin/ls", "ls", "-ld", ".", NULL);return 0;}