1. Discuss the difference between inheritance and composition. What are the advantages and disadvantages of each? Can you implement one with the other?
2.How is a class similar to a database table? How is it different? How do these similarities and differences justify the need for class models and for data models? Or do they?
3.Discuss the difference between association and composition. What are the advantages and disadvantages of each?
4.When would you apply inheritance? When would you not? Provide examples of
when inheritance is appropriate and when it is not, discussing each.
5.Compare and contrast the concepts of coupling and cohesion. How do they relate,if at all, to one another?
6.Describe the relationship between polymorphism and typing.
7.Via the Internet, research common database technologies including relational databases, object databases, object-relational databases, XML databases, network databases, and hierarchical databases. Provide at least one example of each. Compare and contrast each technology, listing the advantages, disadvantages, and an indication of when you would use each.
8.How do interfaces reduce coupling in OO systems? In what ways might they increase it? Why?
| compostion | inheritance |
|---|---|
| It have HAS A | It have IS A |
| it is easily achieved at runtime ,code reusability,extension of class behaviour | it features provide at compile time,code reusability,extension of class behaviour |
:
A group of objects have to be treated in the same way as a single
instance of an object .
examples : 1.Duster is acar
2.safari is acar
thes belongs to car faily com[ostion represents Has a relation ship type.
it shows te ability of an object such as duster has five gears safari has four gears etc..,
whenever we need to extend the ability ofa an existing clas then use compostion .
Example: we need to add one more/u8nless all the derived gear inm duster object then we have to createdone more gear object and compose it to thedusser object we should not make the canges in base class untill all dervied class needed for
Class A dervies Class B
Class A dervies Class C
Class A dervies Class D
if add functionality in class A then tis will be available to all classes sub classes if C and D dont requried this functionality then we create aseparate class for those functionalities and compose it to theclass B
:
the previous class extended with new features
example: student is a student but all students are humans ,their will be relation with humans and students this is inhheritance ,extence of previous class. we can use all superclass functions.
i can answer only one question according to HomeworkLib rules thank you
1. Discuss the difference between inheritance and composition. What are the advantages and disadvantages of each?...
1. Discuss the difference between inheritance and composition. What are the advantages and disadvantages of each? Can you implement one with the other? 2.How is a class similar to a database table? How is it different? How do these similarities and differences justify the need for class models and for data models? Or do they? 3.Discuss the difference between association and composition. What are the advantages and disadvantages of each? 4.When would you apply inheritance? When would you not? Provide...
What are the benefits and disadvantages of object-oriented programming? What is the difference between a flat-file database and a relational database? In what situations is it more appropriate to a flat-file database over a relational database, and vice versa? What are the advantages to using cookies to power a web application? Are there any risks involved using cookies?
1. What is the structure of a relational database? How do you implement a simple relational database in Python and what are some of the benefits? 2. What is the purpose of the “self” argument in the method definitions of a class 3.What does operator-overloading mean in Python? Give an example. 4.Describe the meaning of polymorphism in Object Oriented Programming. Give an example of polymorphism and how it works when the program is executing. 5.What is inheritance in object-oriented design?...
.1. Discuss the advantages and disadvantages of Database Management Systems (DBMS). 2. What is a data model? Discuss the main types of data models. 3. Define the term "database integrity." How does database integrity differ from database security?
What are the differences between the term loan and a bond and Discuss advantages and disadvantages of each.
1. Why are the advantages and disadvantages of object-oriented databases? 2. What are data marts? How do they differ from data warehouses? 3. What is HTML and why is it needed to use the web?
Advantages and Disadvantages of Networks. Distinguish between the advantages and disadvantages of using computing networks. You will also get familiarized with the terms associated with networks. Provide a detailed description of situations in which the use of networks benefited you as well as situations where the use of networks was a disadvantage. Share at least one situation for each case. In addition, research the following terminologies associated with networks and provide a detailed description, along with diagrams, for each. Explain...
What is the difference between qualitative and quantitative research sampling strategies? Compare and contrast the strategies and describe some of the advantages and disadvantages of each.
question are in regard to the C++ language Describe the difference between inheritance and polymorphism. Provide a real-world example of when each could be applied. Describe whether or not there are sometimes when you can use an overloaded function, rather than polymorphism. Provide an example. Justify your response with at least one credible source.
Using the textbook, Topic Materials, and your own research, write a 100-250 word response to each question below. Cite the sources used for answering each question, and include real-world examples in the answer to each question. Define a tuple. How and where does a tuple fit into relational database theory? Why is this an important concept to understand? How does an object-oriented database management system (OODMS) compare to a relational database management system (RDBMS)? What are the key features of...