Object Oriented Programming, Subroutines, Functions And Inheritance

Jun 29, 2010

I have been learning vb.net for about 6 months now and I red few books about basic visual programming as most to them have information about the basic concepts like what is Object oriented programming, subroutines, functions ,inheritance etc and bit about ADO connectivity to database. Having said all that I think I have good concepts about all these things but now I want to proceed further but can't find appropriate text books or online tutorials.

View 2 Replies


ADVERTISEMENT

Object-oriented Programming In .NET And C#?

Apr 16, 2011

good tutorials where i can read about the actual object oriented concepts which we use in real time scenarios. Not the "class is a container. fruit is a parent class and apple is a child class" kind of stuff.Recently i was developing a multithreaded GUI application in vb.net and found out many obstacles like using one form's element in another form, changing form property in other class, when to create objects to access elements and many other stuff stumped me.

View 4 Replies

Beginner's At Object Oriented Programming?

Sep 25, 2011

I'm trying to pick up some simple object-oriented programming skills so I am trying my hand at beginner's problem - and I am totally stuck...I'm trying to write a program that will print to a label, the area and perimeter of your shape of choice, dependent on the Length and Width (for Rectangles and Triangles) or Radius (For Circles) you input and the shape you select.

I know how to do this easily with simple event-driven programming, but I'm trying to do this by using classes and inheritance.The idea I have is that you enter in length/Radius and/or width into text boxes (txtLen, txtWid) and then you can click a button to display the Length, Width and Perimeter or Radius and Circumference, and Area.

I'd create a Super-Class: Shapes to define my overarching parameters - all shapes have area and perimeter. Then I would create sub-classes for each shape inheriting the overarching "Shapes" class - dim'ing all of their respective extra pieces. Then the buttons would display the appropriate info when clicked.I understand this seems like a lot - but really I just need help getting my feet on the ground for this.

View 4 Replies

Is VB An Object Oriented Programming Language

Jun 18, 2009

Is Visual Basic an Object Oriented Programming Language ?Working as a software engineer

View 2 Replies

Object Oriented Programming Using .net 2008?

Aug 4, 2010

I need to write an program with two players rolling a pair of dice and the highest tally wins with an Game class having with two member variables of the type PairOfDice. I can not get it to work.

[Code]...

View 8 Replies

The Power Of Object Oriented Programming?

Oct 28, 2009

Say I want to create a functionTry 5 timesThe function takes a function pointer to another function

function dosomething() as boolean
end function
function tryfivetime (thefunction as what?)

[code].....

View 5 Replies

VB Language And Object Oriented Programming?

Apr 20, 2009

i am new to asp and am currently trying to get my head around the visual basic language and Object Oriented Programming.From what i have read you need to have a good understanding of these to create good ASP.NET webpages, but from reading about these in books and joining the website [URL]..i am getting fairly confused with the language and the OOP. Does anyone out there have any tips for me when it comes to learning about these. Is there a good way to learn about these as i just seem to be getting really confused from the start.

View 5 Replies

C# - Start With Aspect Oriented Programming?

Mar 27, 2009

So having read some of the PostSharp documentation presented as an answer to my previous question regarding passive logging ([URL]), I am led to my next question: Where is a good place to start learning about Aspect Oriented Programming - I've done some searches on Google and I've read some articles - including the article regarding the topic on Wikipedia, but a lot of the material seems to assume you have a basic understanding of some of the terms which I seem to be missing, and that which doesn't just dives straight into integration leaving me not understanding what exactly it is I'm integrating.

Does anyone have any decent material targeted at someone who's never heard of Aspect Oriented Programming before today learn about the core concepts, terms/keywords etc? Even a birds-eye - i.e. These are the core concepts, keywords to look out for, what they stand for and how they fit together. After that, I can probably make some decent headway on my own. I'm most interested in AOP in relation to .NET development,

View 1 Replies

Programming With Excel: How To Call Other Subroutines In The Right Way

Dec 21, 2011

am developing an application automatingExcel 2011 from Visual Studio2010 with Visualasicthe problemis that I can call other subroutines.I developed the following subroutine to addformatting to the selected ce

View 3 Replies

IDE :: Backgound Worker - How To Call Functions And Subroutines

Jun 10, 2009

Visual Studio 2008, Standard Edition VB.NET I have only limited experience using the background worker, and all that I've done with it thus far was fairly straightforward and worked fine.

I am now looking to run a process in a background worker which calls various functions and/or subroutines, but of course it generates an error indicating that it's on the main thread (or something like that - I don't recall exactly, but that was the crux of it).

View 3 Replies

Pass Data Between Subroutines And Functions Using Public Classes?

Oct 31, 2009

I would like an overview of System.EventArgs. I have an understanding of System.Object where I can pass data between subroutines and functions using Public Classes. I am curious what EventArgs do?

View 3 Replies

Reusing Code (functions, Subroutines, Etc.) In Multiple Pages

Dec 28, 2010

I am very familiar with modules from my time with VB and my other programming, but what is the most commonly used practice and the best way to go about this for a website application with ASP.NET? Say I have multiple pages (in multiple directories; some in the root directory, some in child directories from the root) that will call the same set of functions and subroutines, how do I go about putting this reusable code in a place where the pages and their respective classes can call the functions/subroutines?

View 3 Replies

What Are Classes , Objects , A Namespace , Subroutines,functions,methods,properties And Difference Between Byval And Byref

Jun 26, 2010

I want to know what are classes , objects , a namespace , subroutines,functions,methods,properties and differemce betweem byval and byref in your words.

View 18 Replies

Object Oriented Design In Asp.net With VB

Apr 3, 2009

I try to convert vb.net code to an object-oriented design. This help page talks about doing it: [URL] I plan this:

[Code]...

View 1 Replies

Object Oriented Design Vs Procedural

Feb 27, 2009

Our company currently uses an APL model to illustrate our life products. We are in the process of converting this to Excel/VBA because the APL system is extremely difficult to maintain.APL is difficult to maintain because the code has become over the years (~15yrs) spaghetti and only a select people (who have worked here 5+years) really understand this to make updates when new products come out. APL is also not well known and difficult to understand. I just would like help on designing the system, my main career is not a programmer, and the design I was envisioning was a "Procedural" approach. (the APL is procedural rather then object oriented. I have not used object oriented code before)Basically the program illustrates a life insurance product. That just means it projects a fund out from the time the policy is issued to age 120. The illustration is given to the policyholder as a way of predicting what the value of their fund will be given some assumptions.The program does the following1.) Populate Variables2.) Calculate Premiums Types3.) Monthly processing4.) Output values to spreadsheetThe system has to illustrate different types of Products and we are adding new products to the system. Most of the main structure of the program (in VBA) is already written. It seems that (#3) monthly processing will vary by product, and I would like help with maintaining that part of the code. The other 3 parts of the program are not a problem maintaining.We will be continually adding products. We will start with about 5 products and maybe add about 5 per year.Here is the Monthly Processing code:... Call MonthlyProcessing(120, PremPayMode0, Assump0, True, DumpLumpSum0)

View 4 Replies

Some Good Object Oriented Books?

May 21, 2009

I'm looking for some good quality OO books, if any exist for VB .Net

View 10 Replies

How To Do A Seemingly Simple Object-oriented In .NET 2010

Jun 17, 2010

how to do a seemingly simple object-oriented problem in VB.NET 2010. Basically, I want to be able to write code such that I could do the following:

Dim myObject as Object
myObject.Group1.Command1()
myObject.Group2.Command2()

[code]....

Very similar to how VBA handles objects, such as in Excel, I can use

Dim myBook as Workbook
Set myBook = ActiveWorkbook
myBook.Sheets(1).Range("A1").Value()

to get the value of the cell "A1" on the first sheet. This structure has been eluding me for some time now, and it would be great if anyone could suggest how to do it. I'm currently using a class and declaring all methods as Shared Friend inside subclasses, which throws warnings when I use it as I want to in other code.

View 4 Replies

Looping Through A Dataset - Object-oriented Approach

Feb 25, 2012

The problem is as follows, a group of users (~50k) must be filtered from a DB, four fields for each user must be saved into a variable, then a second process will take each user and proceed to enable some licences into another system/platform. Both processes will be developed into the same application.

My first attempt was basically a query looping through the users but I wonder if thinking in objects is a better approach.

I was thinking in a structure inside an object to hold the 4 parameters, then pass each user object to the other object however considering the amount of data I'm not sure if this is fine.

View 1 Replies

Object Oriented Analysis, Design & Implementation?

Apr 28, 2009

With this assignment, you are provided with an incomplete object-oriented implementation of the GAME MANIA software system based on Visual Basic 2008. The specification and the subsequent modelling are explained in a case study titled Game Mania: GAME AND GAME CONSOLE RENTAL STORE.

An implementation of the following classes are made available as the basis of your development work:

1.Member
2.Stock
3.Stock Item
4.Optic Reader
5.Card Writer
6.Membership Card

[Code]...

Note that the user interface provided is very basic. You need to change it, as you feel appropriate so that it will reflect the required functionality. For example, in the present implementation version, no provisions were made in the user interface for querying and handling fines associated with late returns.Providing this aspect in the user interface might be necessary as part of handling renting of games and game consoles.

View 6 Replies

Object Oriented Design For Manufacturing Programs?

Sep 13, 2011

This is a continuation on a different thread of mine because it got off topic. I have a program that i use select case statements, quite a few of them and did a lot of copy and pasting of code and had 5000 lines of code and was still building on it, it was suggested to use OOD so i am making a new thread related to that.

View 1 Replies

Object Oriented Programing, Where To Draw The Line?

Jul 10, 2011

I created a project in Excel-VBA (wich I'm also new at) that connect to a SQL. It retrieves data, puts it in arrays, calculates, writes it up nicely and mails it to a mailing list before it closes itself down. This works when Excel is stable on the server, which it is not. Therefore I'm set on rewriting it to VB.NET (just have to learn it first).Project:To build this project in VB.NET I wanted to try and make it Object Oriented (OO). I have read that OO is when I create a Sub or Module for different tasks. Are there any advantages in learning/doing this from the start? I plan on creating Subs for almost everything, and then call it from a Main sub.

Too much OO?:
These are the modules I plan to create (and call)
Connect to SQL moduleSet up a query and put data in arrays moduleCalculation moduleOutput

[code]....

View 1 Replies

Visual Studio - Object-Oriented Black Jack

Feb 24, 2010

Alright, so I want to improve my programming and object orientation skills. I want to program a fully object oriented blackjack game in VB.net under Visual Studio 2008. The first thing I did was learn all the rules of BlackJack.

[Code]...

View 1 Replies

VS 2008 Object Inheritance And Casting

Mar 23, 2011

I have two custom objects.On of them inherits the other one, appends few more properties and methods, ovverides some other.When I try to cast the Parnet Object to Child I receive an error that it could`nt be done.

View 1 Replies

Definition - Class - Object - Inheritance - Polymorphism - Abstraction

Mar 8, 2010

Can you define this :

Class
Object
Inheritance
Polymorphism
Abstraction

And could you make it easy to understand I'm having a hard time to understand those terms.

View 7 Replies

C# - Design Reference And Object Oriented Design Of A CRM

May 25, 2011

I searched codeplex and google. I have found so many such as tustena but unfortunately they are not domain driven based and in these solutions I could not find a good modelling documents or references. i am a newbie in CRM but I am sensetive to design it with solid object-oriented fundamentals. Any reference or open source solution especifically for CRM design and implementaion in .NET? Cheers

View 1 Replies

Programming Paradigm Called OOP - To Be An Object Or Not To Be An Object ?

Feb 25, 2012

I am in the process of learning this new programming paradigm called OOP (I am a very seasoned structured programmer). In that context I am receiving what I call contradictions in vb.net regarding the instantiation of an object. Given the two lines of code below:

Dim SQLcmd As New SqlCommand
Dim SQLdr As SqlDataReader

The first line is quite simple - SQLcmd is an object - period. It is the second line that is creating the ambiguity. One reference I have read says in order for a class to instantiate an object the key word "new" must be used. But I have also seen examples where SQLdr is also called an object? To add to the ambiguity I have seen class examples where the class was constructed without a new subroutine (a constructor) and called with the key word "new" which I have been informed by vb.net on more than one occasion in doing such that "there are no constructors" in the class. So would someone please tell me - Is SQLdr an object and if so is it by inheritance (the other escape path) or what; and lastly am I correct in my understanding that in order to use the key word "new" there must be a "new" subroutine/function/constructor in the class.

View 3 Replies

.NET Inheritance With Collections "Object Reference Not Set..." Errors?

Nov 7, 2010

I am constructing a collection of objects, and need to use inheritance on a base class - I have been trying for hours in various ways and can't get this to work whatsoever - the error is always "Object reference not set to an instance of an object." The idea in the example below is that an object is instantiated, and within that lies a collection of Students when I try to access the oDemo.Students(0).Name property the error is raised. Otherwise the object appears to have instantiated OK.Here is the code being used to instantiate and access the class (from ASP.NET).

Dim oDemo As New MyDemo.Students
lblTest.Text = oDemo.Student(0).Name
Here is the sample code from the class library:

[code]......

View 2 Replies

VS 2008 : Have A Class Where The Functions Of The Same Name Are Both Instance Functions And Shared Functions?

Dec 6, 2010

What I am trying to do is have a class where the functions of the same name are both instance functions and shared functions.

Public Shared Function Get...(byval xx as xx)

and

Public Function Get...

The Public Function uses a Property xx created in the constructor, whereas the Shared Function has the parameters (byval xx as xx).

View 1 Replies

Class Inheritance Object Variable Or With Block Variable Not Set?

Sep 26, 2011

i had a class called Tag with a structure like:

public class Tag
private _members
public properties
public shared database_methods
end class

this class was tailored for mysql database. i'm currently adding access 2007 support so i split tag into tag and tagdata with structures like:

[Code]...

View 2 Replies

Calling Class Functions After Declared As An Object?

May 4, 2012

I want to see if there is a way to do this... I'm Using vs2010 with the WP7 SDK. (VB.NET)

I am declaring this in the global scope.

public objGame as object then say i have classes: Game1 and Game2 for the sake of the example we'll just say both classes have an Update() function

I want to set objGame = Game1 (or Game2) and then be able to call objGame.Update()

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved