1.Create shape class as abstract class having area function.Create rectangle, triangle, square class based on this class in VB.NET.
2.Write a program to create class Person. Make at least five properties and one method “show detail” of this class. Now inherit class Student and Faculty from class Person and override method “show detail”. Create objects of Student and Faculty class and call show detail function for both objects to show details in appropriate text boxes.
3.Write a program to implement the class Employee. Show Constructor Overloading in VB.NET.
4.Write a program to implement the class Book and Show Method Overloading in VB.NET.
5.Create an Invoice application in which user enters the customer name, description, unit price and quantity for the item ordered, then clicks the add item button. The application calculates the order total by multiplying the unit price by the quantity. And calculates a discount based on the order total. The user can then add another item to the order by using all information.
6.Create the Inventory class. This class represents the collection of product object. It has following members: code, description, price and quantity on hand. Create a property to get the product with the specified code. Create a method to add the product to the collection of products.
7.Create one class student which stores information of student’s Roll no, Name, Total marks, which can not be used from outside the class. Student class must provide properly methods to read and write this information. Student class should provide one function called percentage. Create the other classes from student class FYBCA, SYBCA, TYBCA, which stores marks of different subjects in array marks having no. of elements equal to no. of subjects respectively. The child class must provide function for calculating the total which should be stored in Total Marks of base class. The child classes must have the correct method for calculating percentage according to no. of subjects. Demonstrate the use of these classes.
2.Write a program to create class Person. Make at least five properties and one method “show detail” of this class. Now inherit class Student and Faculty from class Person and override method “show detail”. Create objects of Student and Faculty class and call show detail function for both objects to show details in appropriate text boxes.
3.Write a program to implement the class Employee. Show Constructor Overloading in VB.NET.
4.Write a program to implement the class Book and Show Method Overloading in VB.NET.
5.Create an Invoice application in which user enters the customer name, description, unit price and quantity for the item ordered, then clicks the add item button. The application calculates the order total by multiplying the unit price by the quantity. And calculates a discount based on the order total. The user can then add another item to the order by using all information.
6.Create the Inventory class. This class represents the collection of product object. It has following members: code, description, price and quantity on hand. Create a property to get the product with the specified code. Create a method to add the product to the collection of products.
7.Create one class student which stores information of student’s Roll no, Name, Total marks, which can not be used from outside the class. Student class must provide properly methods to read and write this information. Student class should provide one function called percentage. Create the other classes from student class FYBCA, SYBCA, TYBCA, which stores marks of different subjects in array marks having no. of elements equal to no. of subjects respectively. The child class must provide function for calculating the total which should be stored in Total Marks of base class. The child classes must have the correct method for calculating percentage according to no. of subjects. Demonstrate the use of these classes.
Comments
Post a Comment