answersLogoWhite

0

Assume the question was for C#, not C.

":" is syntax to extend a type. If the type extended from is another class, they form a class hierarchy and the "inheritance" is established:

For example:

class Base {}
class Derived : Base {}

Derived extends Base, and thus inherits from Base.


User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Why is multiple inheritance not possible in C?

C is not object-oriented -- you can't even use single inheritance let alone multiple inheritance.


Can you use multiple inheritance in .NET?

Multiple inheritance in C# In C#, the classes are only allowed to inherit from a single parent class, which is called single inheritance. But you can use interfaces or a combination of one class and interface(s), where interface(s) should be followed by class name in the signature.


What is an inheritance Explain different types of inheritance in c?

C is not an object oriented language and therefore has no native support for inheritance.


How ploymorphism and inheritance is different from that in Java and c plus plus?

C++ allows multiple inheritance while Java does not. In my opinion, multiple inheritance is not useful because it can get very confusing very quick. For polymorphism, C++ does early binding by default, while Java does late binding by default. Late binding is more useful than early binding.


How do you create multiple inheritance in c?

You don't. Inheritance is a feature of object oriented programming languages. C is not object oriented.


What is a relationship in following a-polymorphism b-inheritance c-overloading d-none of these options?

Inheritance.


Why high bred inheritance not use in C sharp?

It was the designer's decision. One would have asked the similar question if it had been design the other way. It would not be fun with another hybrid, in inheritance design, language just like C++.


What is a use inheritance?

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


What does inheritance mean in c?

The C Programming language doesn't actually support inheritance, it only supports composition. However, the following code demonstrates how we can use composition to approximate single inheritance: struct Base { int data; }; struct Derived { struct Base base; // ... }; int main (void) { struct Derived d; d.base.data = 42; return 0; }


Specification forms of inheritance in java?

single level inheritance eg ( class B extends Class A) Multilevel inheritance eg( class C extends class B and class B extends class A) multiple inheritance Class C inherits Class A features as well as Class B featues.This type of inheritance is not allowed in JAVA.


Use the word inheritance in a sentence?

She received a large inheritance from her wealthy grandmother.


Does c plus plus supports hierarchical inheritance?

Yes.