Abstract classes and interfaces are very similar. One difference is that: a) Abs
ID: 2247090 • Letter: A
Question
Explanation / Answer
1ans)option is (A)
the difference is abstract class can have constructors
Abstract classes can have abstract methods and normall methods .but in interface all the methods are just unimplemented.abstract class can implement interface and but interface cannot implement abstract class.
ans 3)option (A)
compostion is Has a relation car engine and car muffler are the parts of car so these classes are subclasses of Car class
IS a relation is inheritance
Has a relation is composition
ans 4)option is (A)
composition because Zoo is base class and Zoo has a
animals has a relation.
ans 5)option (e)
all the above because seqeunce diagram has an actors and intraction of objects and passing of message between them.
here first option is corect it describe which actor and classes are interact,diescribes operations and mesages etc ans 2)anti patterns is a bad programming practice in
developement of software.
option is fear os subclassing and analysis paralysis
analysis paralysis is something like not taking decision outcome in effect paralyzing.fear of subclassing is something like hard to read code