In PHP we can use only two Types of inheritance only those are single and multiple inheritances ...
What is the difference between inheritance and aggregation? When would you use one over the other
In Inheritance we have to extend the class where as in Aggregation no need to extend.Directly we can make use of other class in current class by creating object of other class(if required). ...
What is the danger of using public unsigned integers within a class?In a diamond-shaped inheritance hierarchy, how to ensure that only 1 copy of parent is created?
There are at least 2 questions here. The latter is answered but not the former.If the initial question is answered, there would be a requirement to highlight what the dangers are for both public unsigned and multiple inheritance. ...
event delegation model allows other objects to handle the events rather than the objects on which they were produced,Also uneccessary events are not handled. ...
There are two types are inheritence. 1) Multiple Inheritence. 2) Multilevel Inheritence. .NET Supports only Multilevel Inheritence. Ex: Public Class ParentClass Public Overridable Sub OIverridingMethods() ...
You are looking at a class diagram that another developer has drawn. You notice a solid black diamond and a line linking two classes together. What does the black diamond imply in UML?A Aggregation B Association C Composite Aggregation / Composition D Dependency E Inheritance/Generalization
Answer: D
What does a triangular arrow shape with a solid line mean in UML? (The triangle is an outline, and not solid)A Aggregation B Association C Composite Aggregation / Composition D Dependency E Inheritance/Generalization
Answer: E
Proper inheritance occurs when the derived class "IS A" specialized type of the base class. Example Cat IS A Animal. Improper inheritance occurs when a class is inherited from merely for code reuse, without having any other relationship. ...
No, use interfaces instead.
c# does not support multiple inheritance ...
Initially it didnt as java uses "extends" word for inheritance but it didnt allow us to extend more then one class.So the concept of "interface" came which is like abstrct class but with strictness that methods will only be declared at that place & have ...
View page << Previous 1 2 3 [4] 5 6 7 8 9 Next >>

Go Top