Enhancements in classes makes Xbasic in Alpha Five v11 even more powerful

Blog



Enhancements in classes makes Xbasic in Alpha Five v11 even more powerful

Watch the video on Xbasic Classes

There are a lot of very skilled Xbasic programmers in the Alpha Five developer community, but not many developers are using Xbasic Classes. Xbasic classes are a powerful way to improve your code. We recently made Xbasic classes easier to use by allowing you to define your own namespaces. We also made improvements to the way classes can inherit from a each other.

For example, in the somewhat contrived example below we can see two class definitions. The second class inherits from the parentSays class. Both classes are defined in the DEMO namespace. As you can see, the 'sayWhat()' method of the child class calls the 'momTalk()' method of its parent class.

Interested in mentoring to buff up your Xbasic skills? Please contact marketing@alphasoftware.com
define class DEMO::parentSays

dim phrase as c = "Listen to your parents."
function momTalk as c()
ui_msg_box("","momTalk:" + phrase)
end function
end class

define class DEMO::childSays INHERITS DEMO::parentSays
dim kidSpeak as c = "My mom always says:"
function sayWhat as c()
'call the parent class method
momTalk()
end function
end class

[Watch the video. Learn more about Alpha Five v11.]

Big Changes in IT that Developers Need to Know About
Online Database Applications - 2013 is the Year

About Author

Richard Rabins
Richard Rabins

Co-founder of Alpha Software, Richard Rabins focuses on strategy, sales, and marketing. Richard also served as CEO of SoftQuad International from 1997 to 2001, when it owned Alpha. In addition to his 30 years with the company, Richard played a key role as co-founder, and served as president and chairman of the Massachusetts Software Council (now the Massachusetts Technology Leadership Council), the largest technology trade organization in Massachusetts. Prior to founding Alpha, Richard was a project leader and consultant with Information Resources, Inc. (IRI), and a management consultant with Management Decision Systems, Inc. Richard holds a master's degree in system dynamics from the Sloan School at MIT, and a bachelor's degree in electrical engineering and master's degree in control engineering from University of the Witwatersrand in Johannesburg, South Africa. He has served on the boards of Silent Systems, Legacy Technology and O3B Networks, and is co-founder of Tubifi www.tubifi.com.

Related Posts
6 Reasons why Companies are looking to Build
6 Reasons why Companies are looking to Build "industrial Strength Mobile apps for their "Stand-Up" Staff
Role-Based Security for Business Apps
Role-Based Security for Business Apps
Evaluating Low Code Mobile App Development Platforms
Evaluating Low Code Mobile App Development Platforms

Comment

Subscribe To Blog

Subscribe to Email Updates