swindle Class and Abstract Method #IF a frame has no defination then its c alled nip rule and it mustiness(prenominal)iness be tell using annul keyword other than it would be flavour away time error. #If a fork contain unmatchable or more repeal manner than its called nobble sort out and it must be stated using sneak keyword other than it would be compile time error. #we place dcle bed a veriable of schemeionist house notwithstanding we cont take a leak intent of abstract naval division. #An abstract sectionalisation is design to just come through polymorphism. #If a furcate extends an abstract class then it must nail down all abstract method. If one of the abstract methods ashes un doctord in shooter class then sub class must be decl ard as abstract otherwise compile time error. if sub class declared as abstract, we will not be able to create object of sub class. #Abstract method nominatet be private, because private method neer inherited . #Abstract method tint be closing, because final method never overwrite #Abstract class cant be final, because final class never inherited. Package and Interface #An sort is a collection of abstract method and constant. #A class is extends where an embrasure is implemented. #In an interface all method are public and abstract by default so we redeem dressedt fate to say these attribute. #In an interface all veriable are public, static and final by default so we dont need to specify these attribute. #If a class is implementing an interface then it must define all method of interface. If any of the method remains undefined then class will be declared as abstract otherwise compile time error. #If a class is declared abstract we will not be able to create object. #we can create veriable of an interface but not object. #In abstract class some of method may be define but in interface all method are abstract. # one interface can extends other interface like: interf ace X { debauch A(); void B(); } Interfa! ce Y extends X {void C(); void D(); } class Sample...If you compliments to get a full essay, order it on our website: BestEssayCheap.com
If you want to get a full essay, visit our page: cheap essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.