Explain concept of inheritance with support of example, Database Management System

Assignment Help:

Explain concept of inheritance with support of suitable example.

Inheritance

Inheritance is one of milestone of object-oriented programming language as it allows a creation of hierarchical classifications. Using inheritance we can create a general class which defines trails common to a set of related items. More particular classes can inherit this class and each can add a certain exceptional thing to the resulting new class. The class which inherits from another, class or classes is termed as derived class or subclass and the class/classes from which derived class is made is called as a base class or a super class. For illustration, racing cars, Pick up cars and saloons etc. are all dissimilar kinds of cars in object-oriented terminology racing cars. Pick up cars, and saloons etc. are all subclasses of car class. Also, as illustrated in Figure, below, the car class is super class of sub classes like racing cars, sedans, saloons, convertibles, etc.

 


Related Discussions:- Explain concept of inheritance with support of example

Illustrate package classes and associations into models, Package classes an...

Package classes and associations into models  Programs are made of separate physical units which could be edited, imported, complied or otherwise manipulated. The careful part

Defining internal classes and operations, Defining Internal Classes and Ope...

Defining Internal Classes and Operations When we enlarge algorithms, new classes can be added to the store intermediate results. A complex operation could be looked at, as a c

Distributed database management system, Question (a) Differentiate betw...

Question (a) Differentiate between the following terms: (i) Distributed Database v/s Distributed Database management System (ii) Homogeneous Distributed Database v/s Hete

Explain the five levels of capability maturity models, Question 1 What is ...

Question 1 What is data mining? Write Data Mining applications Question 2 What is OLAP? Write the benefits of OLAP Question 3 What is Business Intelligence? Explai

Aggregation, What does Aggregation mean?

What does Aggregation mean?

What are the benefits of prepared statements, What are the benefits of prep...

What are the benefits of prepared statements and place holders? Parameter binding operations automatically handle escaping of characters Encourage Statement reuse

Project, I need help in doing my dbms project

I need help in doing my dbms project

Draw and explain the three level architecture of database, Draw and explain...

Draw and explain the three level architecture of the database system? A DBMS gives three levels of data is said to follow three-level architecture. The trget of the three-schem

What are deadlocks, What are deadlocks?  How can they be avoided?  Ans:...

What are deadlocks?  How can they be avoided?  Ans: Deadlock considers to a particular condition when two or more processes are every waiting for another to release a resource,

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd