Skip to content

multilevelinheritance added#246

Open
VARSHAGURBANI wants to merge 1 commit intocyberpvn7:mainfrom
VARSHAGURBANI:multilevelinheritance
Open

multilevelinheritance added#246
VARSHAGURBANI wants to merge 1 commit intocyberpvn7:mainfrom
VARSHAGURBANI:multilevelinheritance

Conversation

@VARSHAGURBANI
Copy link
Copy Markdown

In this we explore multi-level inheritance. Suppose, we have a class A which is the base class and we have a class B which is derived from class A and we have a class C which is derived from class B, we can access the functions of both class A and class B by creating an object for class C. Hence, this mechanism is called multi-level inheritance. (B inherits A and C inherits B.)

question:-Create a class called Equilateral which inherits from Isosceles and should have a function such that the output is as given below.

this has also been asked in various companies interview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant