Java Programs on Abstract Classes and Methods

Опубликовано: 19 Июль 2026
на канале: Dr. K. K. Baseer
247
4

program to create an abstract class named Shape that contains an empty method named numberOfSides ( ). Provide three classes named Trapezoid, Triangle and Hexagon such that each one of the classes extends the class Shape. Each one of the classes contains only the method number Of Sides( ) that shows the number of sides in the given geometrical figures

Join the community:
https://t.me/ilmforu

code + Notes + Practice Sheet:
https://drive.google.com/drive/folder...


Course Videos:

1.Program to input n integers and perform sorting between them (Ascending or descending):    • Program to input n integers and perform so...  

2.Program that computes the sum of all its integer arguments:    • Program that computes the sum of all its i...  

3.Program to print the element of an array that has occurred highest number of times:    • Program to print the element of an array t...  

4.Program to count tokens- number of words and characters in a string:    • Program to count tokens- number of words a...  

5.Java program that uses non-recursive functions to print the nth value of the Fibonacci sequence:    • Java program that uses non-recursive funct...  

6.Java program that uses recursive function to print the nth value of the Fibonacci sequence:    • Java program that uses recursive function ...  

7.To find sum of three integers, three double values and four integers using Method Overloading:    • To find sum of three integers, three doubl...  

8.Program to define a class student and describe a constructor Also define a method display to print:    • Program to define a class student and desc...  

9.Program on Scanner Class:    • Program on Scanner Class  

10.Java Programs on Abstract Classes and Methods:    • Java Programs on Abstract Classes and Methods  

11.Program on Java Packages:    • Program on Java Packages  

12.Java program along with an interactive driver class:    • Java program along with an interactive dri...  


Books referred:
JAVA: THE COMPLETE REFERENCE ,12TH EDITION Herbert Schildt : https://amzn.to/453THBh
-Core Java: An Integrated Approach, New: Includes All Versions Upto Java 8 : https://amzn.to/3BzPOqh

products used in the video:
-Logitech C270 Digital HD Webcam with Widescreen HD Video Calling: https://amzn.to/3BPCAG9
-Dell Vostro 3420 Laptop,12th Gen Intel Core i5-1235U, 8GB & 512GB SSD: https://amzn.to/3W8ArOO
Dell USB Wireless Keyboard and Mouse Set KM3322W: https://amzn.to/3pNb0qd
-realme TechLife Buds T100 Bluetooth Truly Wireless in Ear Earbuds with mic: https://amzn.to/44xVH4A
-boAt Rockerz 255 Max in Ear Earphones with 60H Playtime : https://amzn.to/3MdGpJW

Reach Me:

  / kkbaseer  
  / kkbaseer  
https://researchgate.net/profile/K_K_...

Like to drop an email: [email protected]