State the process of rearranging classes and operations, Database Management System

Assignment Help:

State the process of Rearranging Classes and Operations

The various, yet similar operation of different classes can be slightly modified thus that they can be covered by a single inherited operation. The chances of inheritance can be increased by following types of adjustments:

i) Some operations require fewer arguments than other similar operations, such as drawing an object, e.g. circle, triangle, etc. with or without colour fill. So, the attribute colour can be accepted or ignored for consistency with colour displays.

ii) Some operations require less argument than other, as they are special case of general arguments. So, varied newer operation can be implemented by calling general operation and new argument values. For instance, insertion in the beginning or in the end of the list are special cases of insertion in the list.

iii) Different classes can have similar attributes, but dissimilar names. Therefore, they can be combined and placed in base class so that operation to access attribute may match in different classes.

 iv) Sometimes an operation is needed by a subset of classes. In this case, declare operation in base class and all those derived classes which do not need it can be declared as no-operation.

 


Related Discussions:- State the process of rearranging classes and operations

Explain the disadvantages of creating a temporary table, Explain the disadv...

Explain the disadvantages of creating a temporary table? If you have already created a temporary table with a shown name and attempting to create a second one with that nam

Customer service, as a customer service employee, explain five measures you...

as a customer service employee, explain five measures you would recommend a displeased student to patronise a school canteen

Client server databases, Client Server Databases- The concept behind the C...

Client Server Databases- The concept behind the Client/Server systems is simultaneous, cooperative processing. It is an approach that presents a one systems view from a user's vie

Explain trigger, Explain trigger? Trigger: A database trigger is proc...

Explain trigger? Trigger: A database trigger is procedural code which is automatically executed within response to certain events on a particular table in a database. Trigger

Attributes, Attributes and its types explain?

Attributes and its types explain?

Define hot swapping, Define hot swapping? Hot swapping permits the remo...

Define hot swapping? Hot swapping permits the removal of faulty disks and changes it by new ones without turning power off. Hot swapping decreases the mean time to repair.

What is a merge sort, QUESTION (a) Using an appropriate example, explai...

QUESTION (a) Using an appropriate example, explain what is a recursive function? (b) Explain in detail the C++ function given below. void search2(int list[],int n,int ele

Define rotational latency time, Define rotational latency time. The ti...

Define rotational latency time. The time spent waiting for the sector to be accessed to appear under the head is known as the rotational latency time.

Discuss the count function, Discuss the count function? The COUNT funct...

Discuss the count function? The COUNT function used returns the number of tuples or values fixed in a query. The count function comprises two types of syntax: (1) COUNT (*)

Explain the timestamps for read operations, Timestamps For Read operations:...

Timestamps For Read operations: If TS (T) If TS (T) >= W-timestamp (Q), then the transaction T is trying to read a value of data item Q which has been written and committed

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