Create a class student with public member variables

Create a class Student with public member variables: Student name, student number, contact number, ID number. The following specifications are required:

 Add init() method of the class that initializes string member variables to empty strings and numeric values to 0.

 Add the method populate() to the class. The method is used to assign values to the member variables of the class.

 Add the method display() to the class. The method is used to display the member variables of the class.

 Create an instance StudentObj of the class Student in a main program.

 The main program should prompt the user to enter values for five students. The attributes should be assigned to the instance of Student using its populate() method, and must be displayed using the display() method of the instance of Student.

Can a polymorphed creature use class features that don’t require speech or hand gestures?

The Polymorph spell states (in part):

The target’s game statistics, including mental ability scores, are replaced by the statistics of the chosen beast. It retains its alignment and personality.

The creature is limited in actions it can perform by the nature of its new form, and it can’t speak, cast spells, or take any other action that requires hands, or speech.

So, can a polymorphed Paladin use their Divine Smite class feature? It expends a spell slot, but it is not a spell, and as far as we can tell does not require hands or speech.

We know (based on the 10th level Transmutation Wizard feature) that a wizard is supposed to be able to polymorph herself, and we can assume that she is also supposed to be able to maintain concentration needed to stay in the new form (otherwise it would be a pretty useless ability). This is (as far as I can tell) not something any of the beasts eligible as polymorph targets can normally do. So it is clear that the polymorphed creature maintains some abilities from her old form. The question is which ones.

The Druid’s Wild Shape ability explicitly says you can use class features, while Polymorph does not, suggesting that you can’t use class features while polymorphed. However, Wild Shape also explicitly says that you can continue to concentrate on a spell (see below, emphasis mine), and Polymorph does not, yet we believe that a polymorphed creature can continue to concentrate on the polymorph spell. So the fact that Wild Shape explicitly allows something and Polymorph is not explicit about it does not necessarily mean that the polymorphed creature cannot do those things.

From Wild Shape rules:

You can’t cast spells, and your ability to speak or take any action that requires hands is limited to the capabilities of your beast form. Transforming doesn’t break your concentration on a spell you’ve already cast, however, or prevent you from taking actions that are part of a spell, such as call lightning, that you’ve already cast.

So, since Polymorph is silent on the question of whether or not class abilities can be used, and states only that the polymorphed creature cannot perform actions that require hands or speech, how can we best determine whether (RAI) polymorphed creatures maintain any of their old abilities beyond spell concentration?

Asavir prestige class grant Djinni’s Blessing (Su) : “The mount … carry a second rider without penalties”, how rule it?

Regarding the asavir prestige class :

And at the read of the Djinni’s Blessing (Su) : When an asavir reaches 4th level, her mount receives the blessing of the djinn, making it swift and tireless. The mount’s speed increases by 10 feet, it doesn’t take movement penalties from wearing barding, and it can carry a second rider without penalties. When the asavir reaches 8th level, her mount’s speed increases by an additional 10 feet.

I’m asking how rule it ? Does both are on the same Saddle ? or two distinct Saddle are need ? In the particular case of a mounted charge, the two riders and the mount declare charge (like for one rider and mount) ? in the case of ride-by-attack feat, does the two riders need it to performed it ?

Does the two rider (considering two M riders on a L mount) are considering adjacent or sharing the same space ? in the second case with or without the malus due to it ?

Thanks for your responses.

Which is a type of objects in mainstream OO languages: a class, an interface, an abstract class, a metaclass?

In Types and Programming Languages by Pierce, Section 18.6 Simple Classes in Chapter 18 Imperative Objects says:

We should emphasize that these classes are values, not types. Also we can, if we like, create many classes that generate objects of exactly the same type. In mainstream object-oriented languages like C++ and Java, classes have a more complex status—they are used both as compile-time types and as run-time data structures. This point is discussed further in §19.3.

The only place which Section 19.3 Nominal and Structural Type Systems says about classes is:

These type names play a crucial role in Java’s subtype relation. Whenever a new name is introduced (in a class or interface definition), the programmer explicitly declares which classes and interfaces the new one extends (or, in the case of a new class and an existing interface, “implements”). The compiler checks these declarations to make sure that the facilities provided by the new class or interface really extend those of each super-class or super-interface— this check corresponds to record subtyping in a typed lambda-calculus. The subtype relation is now defined between type names as the reflexive and tran- sitive closure of the declared immediate-subtype relation. If one name has not been declared to be a subtype of another, then it is not.

Does the above quote or some other places in Section 19.3 explain the second highlighted sentence in the first quote from Section 18.6, i.e. why

In mainstream object-oriented languages like C++ and Java, classes have a more complex status—they are used both as compile-time types and as run-time data structures

? (I don’t see Section 19.3 mentions that a class is a type of objects in mainstream OO languages, and even explains it.)

In Chapter 18 Imperative Objects, is an interface a type of objects?

In mainstream OO languages (such as Java, C#, I am not sure if C++ has interface),

  • is an interface a type of objects?

    An interface seems to me a type of classes, since many classes can implement the same interface. Since a class is a type of objects, is an interface a kind?

  • Is an abstract class essentially the same concept as an interface? (In terms of being a type of classes or something else)

I have a related post a while ago: Is the implementation relation between an interface and a class an instantiation or inheritance relation, or neither?. It also introduces concept “metaclass” of Python, and my confusions between interface, class, abstract class, and metaclass. Appreciate if you could also take that into account.


Fatal error: Uncaught Error: Class ‘HttpRequest’ not found

Estoy tratando de consumir un webservice al cual tengo que enviarle ciertos datos, al tratar de ejecutarlo me sale el siguiente error: Fatal error: Uncaught Error: Class ‘HttpRequest’ not found

Mi código es este: <?php  $  request = new HttpRequest(); $  request-   >setUrl(''); $  request->setMethod(HTTP_METH_POST);  $  request->setHeaders(array( 'Authorization' => 'Basic c3ljcmVhOl9pMzYuRXhqMnA=', 'Content-Type' => 'application/json' ));  $  request->setBody('{ "id": "imagen base64", "idReverso": ""  }');  try { $  response = $  request->send();  echo $  response->getBody(); } catch (HttpException $  ex) {  echo $  ex;  } ?> 

What are the possible balance implications for houseruling INT as Paladin’s spellcasting ability and class features?

Related (yet different): What is the source of a Paladin’s spell-casting ability?

Related (strongly): What are the impacts of changing a Ranger’s spellcasting ability? (I don’t know if everything that’s said about the Ranger is applicable to the Paladin)

My player wants to create (L1) an investigator-type paladin (of the Inquisition) and asked that Intelligence becomes the character’s spell-casting ability and, if possible, also class features ability (e.g. Lay on Hands).

PHB states that:

Charisma is your spellcasting ability for your paladin spells, since their power derives from the strength of your convictions. You use your Charisma whenever a spell refers to your spellcasting ability. In addition, you use your Charisma modifier when setting the saving throw DC for a paladin spell you cast and when making an attack roll with one.

Since they are not asking for extra skills than the ones already provided by race, class & background, i.e. Paladins can pick from two Charisma skills (Intimidation, Persuasion) and one Intelligence skill (Religion) at character creation, I don’t see any system-unbalancing issue in this approach.

To be clear, my issue is not the fluff of “the strength of convictions” (I’ll probably trump it as “rigorous reasoning” ala Sherlock Holmes) but whether the PC becomes over/under -powered, compared to the normal Charisma-based option, over the short and long run.

In case it is relevant, it is a Human-only (for PCs) campaign, with options only from PHB (feats included) excluding multi-classing.

Cleric and mystic theurge class level for command undead

I am playing a cleric/wizard/mystic theurge. I have the feat command undead.

The feat specifically mentions cleric level, not cleric caster level, in relations to the the DC of the ability and number of undead it allows you to control.

My understanding is that mystic theurge only increases your spell casting, that is spell level, spells per day, and caster level. No other aspects of the class are increased. So channel energy for instance does not increase in power either.

Am I correct in that MT does not increase the cleric level for command undead feat?

How racial class mechanics actually works? On half-giant example

For example, i want to be half-giant. It’s a racial class from the d&d 3.5 Complete Psionics handbook. I pick it as a race? right? But i get my racial abilities by taking level. So, when i take a level, i get both racial AND class level, according to special leveling table, right? For example 1 level Half-giant 1 level Priest 2 level Half-giant 1 level Priest 3 level Half-giant 2 level Priest 4 level Half-giant 3 level Priest 5 level Half-giant 4 level Priest

And last question, may i just use all racial abilities from start, like a LA+1 character?

Does the Kenku racial curse prevent the Awakened Mind class feature and similar telepathy effects from helping them communicate?

A Great Old One warlock is granted awakened mind at first level — a limited form of conversational telepathy that allows communication (with range limitations) with any being that can understand at least one language.

Kenku, however, are under a racial curse that prevents them from speaking except via mimicry of sounds they’ve heard in the past (as if a talking crow or myna had the intelligence to carry on a conversation with its mimicked words). Obviously, a Kenku could be a target of this ability from another being, because they understand speech — but could the Kenku reply other than by mimicry of words and phrases he’d heard? Beyond this, could a Kenku Great Old One warlock use this ability to carry out one-on-one conversation without having to dig through his memory for words or phrases that fit the need?

Note: most upvoted vs. accepted answer here; there seems to be some conflict yet on whether awakened mind is even two-way…

Add other social networks to TwentyNineteen_SVG_Icons class in child theme?

I’m trying to add items to the $ social_icons_map and $ social_icons arrays in class-twentynineteen-svg-icons.php

I know I need to do it in the functions.php file of my child theme. I think I need to make it happen after_setup_theme

However, I’m not sure if I need to rewrite the entire get_social_link_svg function, or if there’s a way to extend the class just by adding those array values.

I’ve tried numerous variations of this solution which didn’t work for me – just a lot of “The site is experiencing technical difficulty” pages. Lots of moving parts in this element (too many if you ask me) so I’m honestly not sure where to start. Please lend your thoughts.