Questions: 1 835

Answers by our Experts: 1 539

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Create a class with a function that prints "This is parent class" and its subclass with another function that prints "This is child class". Now, create an object for each class and call


1 - function of the parent class by the object of the parent class


2 - function of the child class by the object of the child class c#


3 - function of the parent class by the object of the child class



10. Write a program that would print the information (name, year of joining, salary, address) of three employees by creating a class named 'Employee'. The output should be as follows:


Name Year of joining Address


Robert 1994 64C- WallsStreat


Sam 2000 68D- WallsStreat


John 1999 26B- WallsStreat


C#

Write a program to print the volume of a box by creating a class named 'Volume' with an initialization list to initialize its length, breadth and height. (just to make you familiar with initialization lists) c#

8. Print the average of three numbers entered by the user by creating a class named 'Average' having a function to calculate and print the average without creating any object of the Average class c#

7. Write a program to print the area of a rectangle by creating a class named 'Area' taking the values of its length and breadth as parameters of its constructor and having a function named 'returnArea' which returns the area of the rectangle. Length and breadth of the rectangle are entered through keyboard c#

create a new class named "RandomHelper" which contains the following ;



1. A static member called randint that accept two integer and return a random integer between them. Make sure that the numbers are inclusive (i.e. if you call randomint(1,10) you should be able to generate both 1 and 10.

2.A static method called randdouble that accept two integer and returns a random double between them.for this method you should be able to generate number such that 1<=x<10 for the method call randdouble(1,10)

3.Call your method for another call without instantiating the class (i.e.call it just you would call math.Random() since your method are defined to be static)


sir please can i get the source code


Write a program to print the area of a rectangle by creating a class named 'Area' having two functions. First function named as 'setDim' takes the length and breadth of the rectangle as parameters and the second function named as 'getArea' returns the area of the rectangle. Length and breadth of the rectangle are entered through keyboard.( For C sharp with easy code)


Write 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 function named 'Area' which returns the area. Length and breadth are passed as parameters to its constructor.( For C sharp with easy code)


Write a program to print the area and perimeter of a triangle having sides of 3, 4 and 5 units by creating a class named 'Triangle' with the constructor having the three sides as its parameters.( For C sharp with easy code)


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS