I cannot able to print the function [on hold]











up vote
-3
down vote

favorite












i know how to print it



But my question is



import UIKit
class rules{
func printsomething(income:String){
print(income)
}
}
var objs:rules

print(objs.printsomething(income: "ssd"))


if I compile it




Error variable objs is not initialized before




I know how to print the function but help what wrong with the above function










share|improve this question







New contributor




subash chandru is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as off-topic by πάντα ῥεῖ, Heslacher, Mathias Ettinger, 200_success, Martin R 14 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Heslacher, Mathias Ettinger, 200_success, Martin R

If this question can be reworded to fit the rules in the help center, please edit the question.













  • I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
    – Mathias Ettinger
    15 hours ago










  • sorry and thanks for the information
    – subash chandru
    15 hours ago















up vote
-3
down vote

favorite












i know how to print it



But my question is



import UIKit
class rules{
func printsomething(income:String){
print(income)
}
}
var objs:rules

print(objs.printsomething(income: "ssd"))


if I compile it




Error variable objs is not initialized before




I know how to print the function but help what wrong with the above function










share|improve this question







New contributor




subash chandru is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as off-topic by πάντα ῥεῖ, Heslacher, Mathias Ettinger, 200_success, Martin R 14 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Heslacher, Mathias Ettinger, 200_success, Martin R

If this question can be reworded to fit the rules in the help center, please edit the question.













  • I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
    – Mathias Ettinger
    15 hours ago










  • sorry and thanks for the information
    – subash chandru
    15 hours ago













up vote
-3
down vote

favorite









up vote
-3
down vote

favorite











i know how to print it



But my question is



import UIKit
class rules{
func printsomething(income:String){
print(income)
}
}
var objs:rules

print(objs.printsomething(income: "ssd"))


if I compile it




Error variable objs is not initialized before




I know how to print the function but help what wrong with the above function










share|improve this question







New contributor




subash chandru is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











i know how to print it



But my question is



import UIKit
class rules{
func printsomething(income:String){
print(income)
}
}
var objs:rules

print(objs.printsomething(income: "ssd"))


if I compile it




Error variable objs is not initialized before




I know how to print the function but help what wrong with the above function







swift






share|improve this question







New contributor




subash chandru is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




subash chandru is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




subash chandru is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 15 hours ago









subash chandru

1




1




New contributor




subash chandru is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





subash chandru is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






subash chandru is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as off-topic by πάντα ῥεῖ, Heslacher, Mathias Ettinger, 200_success, Martin R 14 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Heslacher, Mathias Ettinger, 200_success, Martin R

If this question can be reworded to fit the rules in the help center, please edit the question.




put on hold as off-topic by πάντα ῥεῖ, Heslacher, Mathias Ettinger, 200_success, Martin R 14 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Heslacher, Mathias Ettinger, 200_success, Martin R

If this question can be reworded to fit the rules in the help center, please edit the question.












  • I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
    – Mathias Ettinger
    15 hours ago










  • sorry and thanks for the information
    – subash chandru
    15 hours ago


















  • I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
    – Mathias Ettinger
    15 hours ago










  • sorry and thanks for the information
    – subash chandru
    15 hours ago
















I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
– Mathias Ettinger
15 hours ago




I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
– Mathias Ettinger
15 hours ago












sorry and thanks for the information
– subash chandru
15 hours ago




sorry and thanks for the information
– subash chandru
15 hours ago















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei