Skip to content

Commit 00ea16e

Browse files
Naveen KhuntetaNaveen Khunteta
authored andcommitted
added code for Interface and Multiple Inheritance in Java
1 parent 87c312a commit 00ea16e

File tree

16 files changed

+122
-1
lines changed

16 files changed

+122
-1
lines changed
32 Bytes
Binary file not shown.

bin/OOPConcept/Car.class

2 Bytes
Binary file not shown.

bin/OOPConcept/TestCar.class

27 Bytes
Binary file not shown.

bin/OOPConcept/Vehicle.class

498 Bytes
Binary file not shown.

bin/OOP_2/ICICIBank.class

1.12 KB
Binary file not shown.

bin/OOP_2/TestBank.class

892 Bytes
Binary file not shown.

bin/OOP_2/UKBank.class

141 Bytes
Binary file not shown.

bin/OOP_2/USBank.class

213 Bytes
Binary file not shown.

src/JavaSessions/StringManipulation.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ public static void main(String[] args) {
1515
System.out.println(s.indexOf('a'));
1616
System.out.println(s.indexOf('s'));//8 -- 1st occurrence of s
1717
System.out.println(s.indexOf('s', s.indexOf('s')+1));//15 -- 2nd occurrence of s
18+
System.out.println(s.indexOf('s', s.indexOf('s', s.indexOf('s')+1)+1));//15 -- 3rd occurrence of s
19+
1820

1921
System.out.println(s.indexOf("have"));
2022
System.out.println(s.indexOf("hello")); //-1

src/OOPConcept/Car.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package OOPConcept;
22

3-
public class Car {
3+
public class Car extends Vehicle{
44

55
public void start(){
66
System.out.println("Car--start");

0 commit comments

Comments
 (0)