Define a class SUPPLY in Java with the following descriptions : Members are : Code of int type, FoodName of type String, Sticker of type String, FoodType of type String.…
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
-
Java ProgramsPrograms
Practice questions on Java Classes and Objects – Find car rent using car type.
by Mahesh Vermaby Mahesh VermaDefine a class CARRENTAL with the following details : Class Members are : CarId of int type, CarType of string type and Rent of float type. Define GetCar() method which…
-
Java ProgramsPrograms
Practice questions on Java Classes and Objects – Find result on the basis of score
by Mahesh Vermaby Mahesh VermaDefine a class Candidate with the following description Members are : RNo of int type, Name of type String, Score of type float, Remarks of type String. Member functions :…
-
Java ProgramsPrograms
Practice questions on Java Classes and Objects – Find price on the basis of Fabric
by Mahesh Vermaby Mahesh VermaDefine a class Garments with the following description : Members are : GCode of type String, GType of type String, GSize of type integer, GFabric of type string, GPrice of…
-
Java ProgramsPrograms
Practice questions on Java Classes and Objects – Find fare on the basis of distance
by Mahesh Vermaby Mahesh VermaDefine a class Tour with the following description: Members are : TCode of type String, NoofAdults of type integer, NoofKids of type integer, Kilometers of type integer, TotalFare of type…
-
Java ProgramsPrograms
Practice questions on Java Classes and Objects – Find Area of rectangle using Constructor
by Mahesh Vermaby Mahesh VermaWrite a program to print the area of two rectangles having sides (4,5) and (5,8) respectively by creating a class named ‘Rectangle’ with a method named ‘Area’ which returns the…
-
Java ProgramsPrograms
Practice questions on Java Classes and Objects – Create Employee Class
by Mahesh Vermaby Mahesh VermaCreate a class employee which accepts name, year of joining, salary and address of three employees . Now display the output as follows: Name Year of Joining Address Rahul 1994…
-
Java ProgramsPrograms
Practice questions on Java Classes and Objects – Find Net Pay of an Employee
by Mahesh Vermaby Mahesh VermaDefine a class employee with the following specification : Members are : empno of type integer, ename of type String, basic, hr and da are of type float, netpay of…
-
ArticleJAVA Programming
Practices Questions on Class and Objects in Java
by Mahesh Vermaby Mahesh VermaJava is one of the most popular programming languages used for developing various applications. One of the key concepts in Java is object-oriented programming, which allows developers to create modular,…
-
A string is a sequence of characters. It is a data type that is used to represent text in a program. Strings are often used for storing and manipulating data…