Courses Java/Selenium/Python/Javascript
Offered here: Full-Stack Developer/API/Appium
For Enquiry Call Us: 8939982246
Trainers – Ramsarath,Xavier,Palanivel
Day-3 Polymorphism, Abstraction
DAY_3:
1. Polymorphism
2. Abstraction
QUESTIONS (Theory)
1. What is mean by polymorphism?
2. Difference between method overloading and method overriding?
3. What is mean by Abstraction?
4. Difference between Abstract class and interface?
5. What is mean by abstract method?
6. Can we create object for abstract class?
7. In interface,can we make method as static?
8. In interface,can we make method as final?
9. How will achieve multiple inheritance in java,write a code for that?
QUESTIONS (Programs)
QUESTION 1:
Find the answer for below questions and tell whether it is possible or
not?
I implements I
I implements C
I implements A
I extends I
I extends C
I extends A
Location : 51-A, 2nd floor, Velachery Rd, Dhadeswaram Nagar, Velachery, Chennai, Tamil Nadu 600042
Follow us On: greens_technologies_chennai Scan Here
greens_technologies_chennai To Reach Us
Courses Java/Selenium/Python/Javascript
Offered here: Full-Stack Developer/API/Appium
For Enquiry Call Us: 8939982246
Trainers – Ramsarath,Xavier,Palanivel
C implements I
C implements C
C implements A
C extends I
C extends C
C extends A
A implements I
A implements C
A implements A
A extends I
A extends C
A extends A
A-abstract class
C-class
I- interface
Location : 51-A, 2nd floor, Velachery Rd, Dhadeswaram Nagar, Velachery, Chennai, Tamil Nadu 600042
Follow us On: greens_technologies_chennai Scan Here
greens_technologies_chennai To Reach Us
Courses Java/Selenium/Python/Javascript
Offered here: Full-Stack Developer/API/Appium
For Enquiry Call Us: 8939982246
Trainers – Ramsarath,Xavier,Palanivel
QUESTION 2:
Project :EmployeeDetails
Package :[Link]
Class :Employee
Methods :empId()
Description
You have to overload the method empId() based on different datatype in
arguments.
QUESTION 3:
Project :CompanyDetails
Package :[Link]
Class :CompanyInfo
Methods :companyName()
Description
You have to overload the method companyName() based on different
Number of arguments.
QUESTION 4:
Location : 51-A, 2nd floor, Velachery Rd, Dhadeswaram Nagar, Velachery, Chennai, Tamil Nadu 600042
Follow us On: greens_technologies_chennai Scan Here
greens_technologies_chennai To Reach Us
Courses Java/Selenium/Python/Javascript
Offered here: Full-Stack Developer/API/Appium
For Enquiry Call Us: 8939982246
Trainers – Ramsarath,Xavier,Palanivel
Project :MyPhone
Package :[Link]
Class :Phone
Methods :phoneInfo()
Description
You have to overload the method phoneInfo() based on different
datatype order in arguments.
QUESTION 5:
Project :GreensAddress
Package :[Link]
Class :GreensTech
Methods :greensPerungudi()
Description
You have to overload the method greensPerungudi() based on
order,type,number.
Location : 51-A, 2nd floor, Velachery Rd, Dhadeswaram Nagar, Velachery, Chennai, Tamil Nadu 600042
Follow us On: greens_technologies_chennai Scan Here
greens_technologies_chennai To Reach Us
Courses Java/Selenium/Python/Javascript
Offered here: Full-Stack Developer/API/Appium
For Enquiry Call Us: 8939982246
Trainers – Ramsarath,Xavier,Palanivel
QUESTION 6:
Project :BankDetails
Package :[Link]
Class :BankInfo
Methods :saving(),fixed(),deposit()
Class :AxisBank
Methods :deposit()
Description:
You have to override the method deposit in AxisBank.
QUESTION 7:
Project :EducationInformation
Package :[Link]
Class :Education
Methods :ug(),pg()
Class :Arts
Methods :bSc(),bEd(),bA(),bBA(),ug(),pg()
Description:
You have to override the method ug(),pg() in Arts.
Location : 51-A, 2nd floor, Velachery Rd, Dhadeswaram Nagar, Velachery, Chennai, Tamil Nadu 600042
Follow us On: greens_technologies_chennai Scan Here
greens_technologies_chennai To Reach Us
Courses Java/Selenium/Python/Javascript
Offered here: Full-Stack Developer/API/Appium
For Enquiry Call Us: 8939982246
Trainers – Ramsarath,Xavier,Palanivel
QUESTION 8:
Project :UniversityInformation
Package :[Link]
Class :University
Methods :ug(),pg()
Class :College
Methods :ug(),pg()
Description:
ug(),pg() is just a templete in University class and You have to override
the method ug(),pg() in College class.
QUESTION 9:
Project :BikeInformation
Package :[Link]
Interface :Bike
Methods :cost(),speed()
Class :Ktm
Methods :cost(),speed()
Description:
cost(),speed() is just a templete in Bike Interface and You have to
override the method cost(),speed() in Ktm class.
Location : 51-A, 2nd floor, Velachery Rd, Dhadeswaram Nagar, Velachery, Chennai, Tamil Nadu 600042
Follow us On: greens_technologies_chennai Scan Here
greens_technologies_chennai To Reach Us
Courses Java/Selenium/Python/Javascript
Offered here: Full-Stack Developer/API/Appium
For Enquiry Call Us: 8939982246
Trainers – Ramsarath,Xavier,Palanivel
QUESTION 10:
Project :Computer
Interface :HardWare
Methods :hardwareResources()
Interface :Software
Methods :softwareResources()
Class :Desktop
Methods :desktopModel()
Description:
Create 2 Interface and archieve multiple inheritance.
Location : 51-A, 2nd floor, Velachery Rd, Dhadeswaram Nagar, Velachery, Chennai, Tamil Nadu 600042
Follow us On: greens_technologies_chennai Scan Here
greens_technologies_chennai To Reach Us