last date 12 augst 2018

Suppose a new bank “XYZ” is to be launched very near in future. You have been hired as a programmer in this bank and you have to develop an application with following features:

  • The application must be secure
  • For transactions, proper interfaces will be provided to the customer
  • The application must be reusable
  • The application must be efficient in terms of speed and memory usage

You can use either structure or class in order to achieve the above features. So which programming construct (structure or class) will you select for the application development? Justify your answer with proper reasons.

Views: 1540

Replies to This Discussion

Idea Sol

Comparison between Structure and Class:

  • Structure and class are user defied data types
  • By default structure is a public where as class is private
  • Class implements the principal of encapsulation
  • Objects of a class are created on the heap memory
  • Class is used for re usability where as structure is used for grouping the data in the same structure
  • Structure data members cannot be initialized directly but they can be assigned by the outside the structure
  • Class data members can be initialized directly by the parameter less constructor and assigned by the parameterized constructor.

ya jo ap ny idea dea h ya same to same likh skty hn gdb solution m??? ya jo codings hn yaha group m wo b ese k anwser h???

I think no need for coding

Bhai g is gdb mein class or structure ka pucha hai to hm ny kici aik k bary mein likhein gy yaaa dono. Ap ny jo idea dia hoa hai us mein to difference batayia hoa hai ap ny

Correct Idea Sol (watch video)


Discussion Forum

GBD CS 201 last date: 12 August Spring 2018

Started by Stylish Doll.
Last reply
by Muhammad Asif Khan yesterday. 6 Replies

CS201 Assignment # 3 Due Date: 26th July, 2018

Started by + caмe4ѕтυdιeѕ.
Last reply
by Stylish Doll on Thursday. 5 Replies

CS201 Midterm papers Spring 2018

Started by + caмe4ѕтυdιeѕ.
Last reply
by R Hk Durran¡° Jul 4. 4 Replies

CS201 Assignment # 2 Due Date: 28th May, 2018

Started by + caмe4ѕтυdιeѕ.
Last reply
by Shifaat May 27. 6 Replies

CS201 Assignment # 1 Due Date: 7th May, 2018

Started by + caмe4ѕтυdιeѕ.
Last reply
by Mani BSCS V May 7. 19 Replies


© 2018   Created by Muhammad Anwar Tahseen.   Powered by

Badges  |  Report an Issue  |  Terms of Service