Register and join over 40,000 other developers!
Recent Topics
-
The Game You Are Waiting For?
WendellHarper - Dec 06 2020 01:21 PM
-
Quora and Reddit Backlinks
WendellHarper - Dec 06 2020 01:14 PM
-
Delete account
pindo - Jul 23 2020 01:33 AM
-
Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
-
Learn algorithms and programming concepts
johnnylo - Apr 23 2019 07:49 AM
Recent Blog Entries
Recent Status Updates
Popular Tags
- networking
- Managed C++
- stream
- console
- database
- authentication
- Visual Basic 4 / 5 / 6
- session
- Connection
- asp.net
- import
- syntax
- hardware
- html5
- array
- mysql
- java
- php
- c++
- string
- C#
- html
- loop
- timer
- jquery
- ajax
- javascript
- programming
- android
- css
- assembly
- c
- form
- vb.net
- xml
- linked list
- login
- encryption
- pseudocode
- calculator
- sql
- python
- setup
- help
- game
- combobox
- binary
- hello world
- grid
- innerHTML

1 reply to this topic
#1
Posted 13 October 2012 - 09:10 AM
Hi everyone. I have experience with prog.languges such as C(c++,c#), Java and a little with python. My question is how to create a 2d array in ruby. I`ve searched around but did not found any normal solution... Also i would like to ask a few things like:
1. What does the self. does
2. What does super()
3. What is the purpose of Class exmaple < ex - ( the <ex ?????)
I read about the language , but it seems messy to me even after looking at some examples.
1. What does the self. does
2. What does super()
3. What is the purpose of Class exmaple < ex - ( the <ex ?????)
I read about the language , but it seems messy to me even after looking at some examples.
#2
Posted 13 October 2012 - 11:47 AM
2D arrays
http://stackoverflow...objects-in-ruby
http://www.ruby-forum.com/topic/141223
self is a pointer to the current object, used in class definitions to call a member function of that class instead of a global function by that same name, or access a member variable instead of creating/reading from/writing to a local variable by that name.
super() invokes a specific class method implemented by that particular class' parent class. For example, if class A has a function named foo(), class B inherits from A and overrides foo(), then class B can use super() to invoke A.foo() instead of B.foo() as would be the default.
http://stackoverflow...objects-in-ruby
http://www.ruby-forum.com/topic/141223
self is a pointer to the current object, used in class definitions to call a member function of that class instead of a global function by that same name, or access a member variable instead of creating/reading from/writing to a local variable by that name.
super() invokes a specific class method implemented by that particular class' parent class. For example, if class A has a function named foo(), class B inherits from A and overrides foo(), then class B can use super() to invoke A.foo() instead of B.foo() as would be the default.
sudo rm -rf / && echo $'Sanitize your inputs!'
Also tagged with one or more of these keywords: array
Language Forums →
C# →
Counting the integers frequences in an array entered by the userStarted by AndreMarques, 27 Nov 2017 ![]() |
|
![]() |
||
Language Forums →
PHP →
How Come Variable Not Assigned And Php Knows Where To Look For Value ?Started by uniqueideaman, 06 May 2017 ![]() |
|
![]() |
||
Language Forums →
C and C++ →
help me . c++. ArraysStarted by girl2383, 06 Feb 2017 ![]() |
|
![]() |
||
Language Forums →
C and C++ →
Selecting an element on a 2D arrayStarted by LonelyGuySylar, 18 May 2016 ![]() |
|
![]() |
||
Language Forums →
Java →
Include a specific error, task, problem, or question in your titleStarted by rjb7, 15 Apr 2016 ![]() |
|
![]() |
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download