Create an abstract class “Employee” with abstract methods “calculateSalary()” and “displayEmployeeDetails()”. Implement two subclasses “Manager” and “Worker” which extend “Employee” and implement the abstract methods. Create a “SalesPerson” class which…
Mahesh Verma
Mahesh Verma
I have been working for 10 years in software developing field. I have designed and developed applications using C#, SQL Server, Web API, AngularJS, Angular, React, Python etc. I love to do work with Python, Machine Learning and to learn all the new technologies also with the expertise to grasp new concepts quickly and utilize the same in a productive manner.
-
-
Java ProgramsPrograms
PRACTICE QUESTIONS ON ABSTRACT CLASS – CLASS BANK CALCULATE INTEREST
by Mahesh Vermaby Mahesh VermaCreate an abstract class “Account” with abstract method “calculateInterest()”. Implement two subclasses “SavingsAccount” and “CurrentAccount” which extend “Account” and implement the “calculateInterest()” method. Create objects of both classes and test…
-
Java ProgramsPrograms
PRACTICE QUESTIONS ON ABSTRACT CLASS – CLASS MARKSHEET
by Mahesh Vermaby Mahesh VermaAn abstract class called “Marks” is needed to calculate the percentage of marks earned by students A in three subjects (with each subject out of 100) and student B in…
-
C++ Coding ChallengesProgramming Challenges
Coding Challenge 1 : Find the Rupee Denominations
by Mahesh Vermaby Mahesh VermaCoding Challenge 1 : Find the Rupee Denominations In India the currency is made up of Rupee denominations Re.1, Rs.2, Rs.5, Rs.10, Rs.20, Rs.50, Rs.100, Rs.200, Rs. 500 and Rs.2000.…
-
ArticleCBSE News
CBSE 12th Result 2023: Expected Date, Latest Updates, and How to Check Online
by Mahesh Vermaby Mahesh VermaCBSE 12th Result 2023: Expected Date and Latest Updates Are you eagerly waiting for the CBSE 12th Result 2023? Do you want to know the expected date of the CBSE…
-
Java is an object-oriented programming language that provides several features to build robust and scalable applications. Among these features, interfaces are an essential part of Java programming, and they play…
-
Abstract classes are an important concept in object-oriented programming (OOP) and are widely used in Java. They are classes that cannot be instantiated, but can be inherited by other classes.…
-
Welcome to the article on “Practice Problems on Inheritance in Java”. Inheritance is a powerful concept in object-oriented programming, and it is important to understand its various aspects and applications.…
-
Java supports different types of inheritance that allow developers to create hierarchical structures of classes and reuse code efficiently. In our previous article “Inheritance in Java,” we discussed the concept…
-
Inheritance is a fundamental concept in object-oriented programming that allows one class to inherit properties and behaviors from another class. In our previous article, we discussed classes in Java, which…