design a class car having variables model,
yr_of_manufacture, owner,reg_no. Design methods for
assigning the values, Printing the values( you decide
gui,control, any other methods if require)
Answer / Aneeta Yadav
Here's an example of how to design the Car class in VB.NET:nn```vbnetnPublic Class Carn Private _model As Stringn Private _yrOfManufacture As Integern Private _owner As Stringn Private _regNo As Stringnn Public Sub New(ByVal model As String, ByVal yrOfManufacture As Integer, ByVal owner As String, ByVal regNo As String)n _model = modeln _yrOfManufacture = yrOfManufacturen _owner = ownern _regNo = regNon End Subnn Public Function GetModel() As Stringn Return _modeln End Functionnn Public Function SetModel(ByVal value As String)n _model = valuen End Functionnn ' Similarly design methods for other variables and printing valuesnnEnd Classn```
| Is This Answer Correct ? | 0 Yes | 0 No |
on running a vb.net form to add data to an sql server database am getting an error -> the item "obj\debug\windows application1.form1.resources"was specified more than oncein the "resources" parameter .duplicateitems are not supported by the the "resources" parameter. anyone with the solution to the problem
Please give me the vb.net codes for deadlock(like detecting,& avoiding) in any version of vb.net.
i want to input any no in textbox1. then click to button and then show the name in the textbox2 please send me coding
design a class car having variables model, yr_of_manufacture, owner,reg_no. Design methods for assigning the values, Printing the values( you decide gui,control, any other methods if require)
i want to supress the entire row which have null value and i want to place next row in that place.
how to access crystal report field data value in vb .net
how to make a software for a game ?
how to retrive the content from the file using vb.net
program for check the given number is prime or not in VB.net