DAY14: ----- 1.Inheritance 2.Types of Inheritance QUESTIONS(Theory) -------------- 1.What is mean by inheritance? 2.Types of inheritance and explain all types? 3.What is mean by Super Class? 4.Difference between hybrid and hierachical inheritance? 5.What is the mean by sub Class? 6.What is difference between Multilevel and Multiple inheritance? 7.Give diagrammatic representation of each types inheritance? 8.Write Syntax of Inheritance? 9.In multilevel inheritance intermediate class will contain how many class property ? QUESTIONS(Programs) -------------------- QUESTION 1: ------------ package name: org.all Project name: LanguageDetails Class name : Languageclass Methods : all_Language Class name : Tamil Methods : tamil_Language Class name : English Methods : english_Language Class name : Telgu Methods : telgu_Language Description: create all class methods into the Languageclass [derived class] using multilevel inheritance. QUESTION 2: ------------ package name: org.india Project name: SouthIndia Class name : India Methods : india Class name : TamilNadu Methods : tamil_Language Class name : kerala Methods : malayalam Class name : AndhraPradesh Methods : telugu Description: create all class methods Assume India as Parent Class and all class as Derived Class Using Hierarchical Inheritance QUESTION 3: ------------- Project :CollegeInformation Package :org.college Class :College Methods :college_Name(),college_Code(),college_Rank() Class :dept Methods :dept_Name() Class :Student Methods :student_Name(),student_Dept(),student_Id() Description: create above 4 class methods Assume Student as derived class and all class as Parent class using Multiple inheritance. QUESTION 4: ----------- Project :COmputer Class :Computer Methods :computer_Model() Class :Desktop Methods :desktop_Size() Description: create above 2 class Assume Desktop as derived class and computer class as Parent Class using single inheritance. QUESTION 5: ----------- Project :LanguageDetails Package :org.lang Class :LanguageInfo Methods :tamil_Language(),english_Language(),hindi_Language() Class :StateDetails Methods :south_India(),north_India() Description: create above 2 class Assume LanguageInfo as derived class and stateDetails as Parent class using single inheritance. QUESTION 6: ------------ Project :BankDetails Package :org.bank Class :BankInfo Methods :saving(),fixed() Class :AxisBank Methods :deposit() Class :HdfcBank Methods :loan() Class :SbiBank Methods :locker() Description: create all class methods Assume BankInfo as Parent Class and all class as Derived Class Using Hierarchical Inheritance QUESTION 7: ------------- Project :CompanyDetails Package :org.greens Class :GreensTech Methods :greens_Omr(),greens_Adayar() Class :CourseDetails Methods :java_Course(),oracle_Course() Description: create above 2 class Assume GreensTech as derived class and CourseDetails as Parent class using single inheritance. QUESTION 8: ------------ Project :EducationInformation Package :org.edu Class :Education Methods :ug(),pg() Class :Arts Methods :bsc(),bEd(),bA(),bBA() Class :Engineering Methods :bE(),bTech() Class :Medicine Methods :physiyo(),dental(),mbbs() Description: create all class methods Assume Education as Parent Class and all class as Derived Class Using Hierarchical Inheritance QUESTION 9: ------------ Project :VehicleInformation Package :org.allvehicle Class :Vehicle Methods :vehicle_Necessery() Class :TwoWheller Methods :bike(),cycle() Class :ThreeWheeler Methods :Auto() Class :FourWheeler Methods :car(),bus(),lorry() Description: create all class methods Assume Vehicle as Parent Class and all class as Derived Class Using Hierarchical Inheritance QUESTION 10: ------------- Project :PhoneDetails Package :org.phone Class :ExternalStorage Methods :size() Class :InternalStorage Methods :processor_Name(),ram_Size() Description: create above 2 class Assume InternalStorage as derived class and ExternalStorage as Parent class using single inheritance.