Friday 10 March 2017

Polymorphism

Polymorphism Banner


“One name many form.”

Polymorphism gives the ability to dynamic programming to a language which reduces to write repeated code for each module. You can use polymorphism for flexible programming for example if you‘re making software for a school and you need to print record of different type person which may be student, teacher, non teaching staff etc. So without using polymorphism you need to make separate function for each person related record printing. which lead to increase complexity. In polymorphism you need to make a function for printing record and rewrite different version of this as printing which are isolated by function signature. So you have a better approach to solve your need with flexible coding.

Wednesday 8 March 2017

UGC Net Computer Science December 13 Paper 3 Page 2 Solved

UGC Net Computer Science December 13 Paper 3 Page 2 Solved

UGC Net Computer Science December 13 Paper 3 Page 2 Solved

11. Match the following style rules for reusability :
              List – I                                                              List – II
a. Keep methods coherent                                       i. Write a method to get the last element of a list
b. Keep methods small                                            ii. Maintain parallel structure when possible
c. Keep methods consistent                                   iii. Breaking a method into smaller parts
d. Provide uniform coverage                                 iv. Performs a single function or a group
                                                                                     of closely related  functions.

Tuesday 7 March 2017

Check Your Mind

Sunday 5 March 2017

Strong Number

Write a program to check strong number?

A strong number said to be if sum of factorial of each digit from n is equal to given number
i.e           145 = 1! + 4! + 5!
                       = 1 + 24 + 120

                      =145

/*   ***********************************
           Girfa : Student Help
           Strong Number Program