Contents
Can objects contain data?
– Objects can be told to perform their operations by sending them messages. class as being the cookie cutter and the objects as the cookies.) – A class can also contain data and perform operations.
What are the main advantages of polymorphism?
Advantages of Polymorphism
- It helps the programmer to reuse the codes, i.e., classes once written, tested and implemented can be reused as required. Saves a lot of time.
- Single variable can be used to store multiple data types.
- Easy to debug the codes.
Why is extending bad?
In an implementation-inheritance system that uses extends , the derived classes are very tightly coupled to the base classes, and this close connection is undesirable. Moreover, you must check all code that uses both base-class and derived-class objects too, since this code might also be broken by the new behavior.
What is an object give five examples of real-world objects?
Look around right now and you’ll find many examples of real-world objects: your dog, your desk, your television set, your bicycle. Real-world objects share two characteristics: They all have state and behavior. Dogs have state (name, color, breed, hungry) and behavior (barking, fetching, wagging tail).
How does data modelling affect the database design?
It does not depend on the DBMS software used to implement the model. It does not depend on the hardware used in the implementation of the model. Changes in either hardware or DBMS software have no effect on the database design at the conceptual level. Once a DBMS is selected, you can then implement it.
How does hardware affect the database design process?
Changes in either hardware or DBMS software have no effect on the database design at the conceptual level. Once a DBMS is selected, you can then implement it. This is the internal model. Here you create all the tables, constraints, keys, rules, etc. This is often referred to as the logical design.
What does it mean to have physical data independence?
Physical data independence refers to the immunity of the internal model to changes in the physical model. The logical schema stays unchanged even though changes are made to file organization or storage structures, storage devices or indexing strategy.