We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

Assignment Q:

Q#1: Suppose there is a java program with 2 packages named FirstPackage and SecondPackage. FirstPackage contains 2 classes named FFirstClass (with package access level) and FSecondClass (with public access level). SecondPackage contains a class named SFirstClass with public access level. Write down the code to declare the objects of classes FFirstClass and FSecondClass within the class SFirstClass if it does not generate compiler error. [5]

Q#2: Consider the following java code segment: [5]

class ABC


public void FirstFun(int a, int b)

{ ….. }

public void SecondFun(int a, int b)

{ ….. }

public void ThirdFun(int a, int b)

{ ….. } }

class XYZ extends class ABC

{ public void FirstFun(int a, int b, int c)

{ ….. }

public void ThirdFun(int a, int b)

{ ….. } }

You have to write about each of the three super-class methods whether they are inherited, overloaded or overridden in the sub-class. Give reasons to support your answer.

Q#3: How to declare alphanumeric atoms in PROLOG; Give two examples of then w.r.t to PROLOG syntax. [5]

Share This With Friends......

+ Click Here To Join also Our facebook study Group.

This Content Originally Published by a member of VU Students.

+ Prohibited Content On Site + Report a violation + Report an Issue

..How to Join Subject Study Groups & Get Helping Material?..

Views: 321

See Your Saved Posts Timeline

Replies to This Discussion

Please Discuss here about this assignment.Thanks

Ans 3:

An atom is a group of alphanumeric characters (the underscore character is also considered as an alphanumeric character) starting with a small letter

bhai time khatam hone wala hai...koi sol share kr lo yr...

public void FirstFun(int a, int b)


public void SecondFun(int a, int b)


public void ThirdFun(int a, int b)


very simple question, read java lecture on handouts, you will find it under the sub class topic

Budy it is clear 

plzz if you know the solution of 1st question then plzz post it 


© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service