in Education by

What is Composite pattern?

1 Answer

0 votes
by

What is Composite pattern?

Composite pattern is used where we need to treat a group of objects in similar way as a single object. Composite pattern composes objects in term of a tree structure to represent part as well as whole hierarchy. This type of design pattern comes under structural pattern as this pattern creates a tree structure of group of objects.

This pattern creates a class that contains group of its own objects. This class provides ways to modify its group of same objects.

Related questions

0 votes
    What is Composite Entity pattern?...
asked Nov 7, 2020 in Education by Editorial Staff
0 votes
    Part of the series of controls I am working on obviously involves me lumping some of them together in to ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 12, 2022 in Education by JackTerrance
0 votes
    I have a Composite Component that uses ajax to change multiple elements when an item is selected. I am ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    Calling javax.persistence.criteria.Path.get(String name) fails for the simple class hierarchy detailed below. The ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 15, 2022 in Education by JackTerrance
0 votes
    1. Name the term which is used to join two separate arrays into a single array. 2.How are the following ... ii) primitive type data Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    Identify the composite attributes (a) Salary (b) Credits (c) Section_id (d) None of the mentioned I ... , Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    What are composite indexes? (a) Are those which are composed by database for its internal use (b) ... Answers, Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    If an attribute of a composite key is dependent on an attribute of the other composite key, a ... , Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    In the __________ normal form, a composite attribute is converted to individual attributes. (a) First (b) ... , Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    A relation is in ____________ if an attribute of a composite key is dependent on an attribute of other ... for Decomposition topic in division Normalization of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
0 votes
    What are the different composite keys in Cassandra?...
asked Apr 15, 2021 in Technology by JackTerrance
0 votes
0 votes
    Which of these is a drawback of Multiple Services per Host pattern? A. Faulty deployment B. Non-Dependency conflicts C. Difficult to limit resource utilization...
asked Jan 11, 2023 by JackTerrance
0 votes
    Which pattern collects and reports all exceptions to a centralized exception tracking service? A. Distributed tracing B. Audit logging C. Application logging D. Exception tracing...
asked Jan 11, 2023 in Education by JackTerrance
...